예제 #1
0
 /**
  * @param Role   $role
  * @param string $name
  * @param bool   $allowed
  */
 public function __construct(Role $role, $name, $allowed = true)
 {
     parent::__construct($name, $allowed);
     $this->role = $role;
 }
예제 #2
0
 /**
  * @param User   $user
  * @param string $name
  * @param bool   $allowed
  */
 public function __construct(User $user, $name, $allowed = true)
 {
     parent::__construct($name, $allowed);
     $this->user = $user;
 }