/** * Constructor * * @param array $items * @param mixed $context */ public function __construct(array $items = array(), $context = null) { parent::__construct($items); /** * $context can be either an array or a \MIMAS\Service\Context * If it's an array then it needs converting.... */ if (is_array($context)) { $context = new \MIMAS\Service\Context($context); } $this->setContext($context); }
/** * Constructor * * @param array $items * @param null $context */ public function __construct(array $items = array(), $context = null) { parent::__construct($items); $this->setContext(new \MIMAS\Service\Jorum\Context($context)); }