/** * Role constructor. * * @param string $role * @param null|string $title * @param null|string $description * @param boolean $hidden * @param array $tags */ public function __construct($role, $title, $description, $hidden, array $tags) { parent::__construct($role); $this->title = $title; $this->description = $description; $this->hidden = $hidden; $this->tags = $tags; }
/** * Constructor. * * @param string $role The role as a string * @param TokenInterface $source The original token */ public function __construct($role, TokenInterface $source) { parent::__construct($role); $this->source = $source; }