mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-13 19:55:34 +08:00
24 lines
389 B
PHP
24 lines
389 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ZM\Config;
|
|
|
|
interface EnvironmentInterface
|
|
{
|
|
/**
|
|
* 设置环境变量
|
|
*/
|
|
public function set(string $name, mixed $value): self;
|
|
|
|
/**
|
|
* 获取环境变量
|
|
*/
|
|
public function get(string $name, mixed $default = null): mixed;
|
|
|
|
/**
|
|
* 获取所有环境变量
|
|
*/
|
|
public function getAll(): array;
|
|
}
|