public __construct ( array $properties = [], |
||
$properties | array | new properties for this context. |
$parent | The parent context |
public function __construct($properties = [], $parent = null)
{
foreach ($properties as $property => $value) {
$this->{$property} = $value;
}
$this->_parent = $parent;
}