/** * @param string $key * @param array $childs */ public function __construct($key, array $childs = []) { parent::__construct($key); $this->childs = $childs; }
/** * @param string $name * @param mixed $actions Array of string containing the actions for this permission. */ public function __construct($name, $actions = '', $relatedObject = null) { parent::__construct($name); $this->actions = self::explodeActions($actions); $this->relatedObject = $relatedObject; }
/** * @param string $key * @param array $filters */ public function __construct($key, array $filters = []) { parent::__construct($key); $this->filters = $filters; }