示例#1
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;
 }
示例#2
0
 public function testGetRole()
 {
     $role = new Role('FOO');
     $this->assertEquals('FOO', $role->getRole());
 }