36 lines
558 B
PHP
Executable File
36 lines
558 B
PHP
Executable File
<?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;
|
|
}
|
|
} |