Symfony\Component\Security\Core\Authentication\Token\AnonymousToken::getSecret PHP Method

getSecret() public method

Returns the secret.
public getSecret ( ) : string
return string
    public function getSecret()
    {
        return $this->secret;
    }

Usage Example

 public function testGetKey()
 {
     $token = new AnonymousToken('foo', 'bar');
     $this->assertEquals('foo', $token->getSecret());
 }