__construct() 공개 메소드

Constructor.
public __construct ( string $role )
$role string The role name
예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }