/** * @param string $roleId * @param $label * @param bool|true $isEditable * @param bool|true $isDeletable * @param null $parentId */ public function __construct($roleId, $label, $isEditable = true, $isDeletable = true, $parentId = null) { parent::__construct($roleId); $this->setLabel($label); $this->setIsEditable($isEditable); $this->setIsDeletable($isDeletable); $this->setParentId($parentId); }
/** * @param string|RoleInterface|null $roleId * @param string|RoleInterface|RoleInterface[]|null $parent */ public function __construct($roleId, $parent = null) { if ($roleId instanceof RoleInterface) { $roleId = $roleId->getRoleId(); } parent::__construct($roleId); $this->setParent($parent); }
function __construct($name = '') { parent::__construct(get_class($this)); $this->name = $name; }
/** * Constructor * * @param string $identity * @param $role */ public function __construct($identity, $role = 'consumer') { $this->identity = $identity; parent::__construct($role); }
/** * Constructor */ public function __construct() { parent::__construct(static::$role); }