| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/d2m/sofident_cz/wp-content/plugins/wp-optimize/vendor/mrclay/props-dic/src/Props/ |
Upload File : |
<?php
namespace Props;
/**
* A version of Pimple that uses property access instead of array access
*
* @author Steve Clay <steve@mrclay.org>
*/
class Pimple extends \Pimple\Container
{
/**
* Sets a parameter or an object.
*
* @param string $id The unique identifier for the parameter or object
* @param mixed $value The value of the parameter or a closure to define an object
* @throws \RuntimeException Prevent override of a frozen service
*/
public function __set($id, $value)
{
$this->offsetSet($id, $value);
}
/**
* Gets a parameter or an object.
*
* @param string $id The unique identifier for the parameter or object
* @return mixed The value of the parameter or an object
* @throws \InvalidArgumentException if the identifier is not defined
*/
public function __get($id)
{
return $this->offsetGet($id);
}
/**
* Checks if a parameter or an object is set.
*
* @param string $id The unique identifier for the parameter or object
* @return Boolean
*/
public function __isset($id)
{
return $this->offsetExists($id);
}
/**
* Unsets a parameter or an object.
*
* @param string $id The unique identifier for the parameter or object
*/
public function __unset($id)
{
$this->offsetUnset($id);
}
}