im/extend/easyTask/Env.php

36 lines
558 B
PHP
Raw Normal View History

2023-09-26 18:09:46 +08:00
<?php
namespace easyTask;
/**
* Class Env
* @package easyTask
*/
class Env
{
/**
* collection
* @var array
*/
private static $collection;
/**
* Set
* @param string $key
* @param mixed $value
*/
public static function set($key, $value)
{
static::$collection[$key] = $value;
}
/**
* Get
* @param string $key
* @return mixed
*/
public static function get($key)
{
return isset(static::$collection[$key]) ? static::$collection[$key] : false;
}
}