src/Config/PropertyAccess.php
<?php
/**
*
*/
namespace Mvc5\Config;
trait PropertyAccess
{
/**
* @param string $name
* @return mixed
*/
function __get($name)
{
return $this->get($name);
}
/**
* @param string $name
* @return bool
*/
function __isset($name) : bool
{
return $this->has($name);
}
/**
* @param string $name
* @param mixed $value
* @return mixed
*/
function __set($name, $value)
{
return $this->set($name, $value);
}
/**
* @param string $name
*/
function __unset($name) : void
{
$this->remove($name);
}
}