/** * {@inheritdoc} * * @param array $params */ public function __construct($type, array $params = []) { parent::__construct($type); $params += ['resource' => null, 'access_control' => null]; $this->resource = $params['resource']; $this->accessControl = $params['access_control']; }
/** * {@inheritdoc} * * @param array $params */ public function __construct($type, array $params = []) { parent::__construct($type); $params += ['section' => null, 'content' => null, 'options' => null]; $this->section = $params['section']; $this->content = $params['content']; $this->options = $params['options']; }
/** * {@inheritdoc} * * @param array $params */ public function __construct($type, array $params = []) { parent::__construct($type); $params += ['message' => null]; $this->message = $params['message']; }