PHP Class Themosis\Foundation\DataContainer

Inheritance: implements ArrayAcces\ArrayAccess
Show file Open project: themosis/framework

Protected Properties

Property Type Description
$properties array Instance properties.

Public Methods

Method Description
offsetExists ( string $offset ) : boolean Check if a property exists.
offsetGet ( string $offset ) : mixed Property to fetch.
offsetSet ( string $offset, mixed $value ) Set a new property.
offsetUnset ( string $offset ) Property to remove.

Method Details

offsetExists() public method

Check if a property exists.
public offsetExists ( string $offset ) : boolean
$offset string The property key.
return boolean True on success, false on failure.

offsetGet() public method

Property to fetch.
public offsetGet ( string $offset ) : mixed
$offset string The property key.
return mixed

offsetSet() public method

Set a new property.
public offsetSet ( string $offset, mixed $value )
$offset string The property key.
$value mixed The property value.

offsetUnset() public method

Property to remove.
public offsetUnset ( string $offset )
$offset string The property key.

Property Details

$properties protected property

Instance properties.
protected array $properties
return array