Symfony\Component\Security\Core\Authentication\Token\AnonymousToken::getSecret PHP Méthode

getSecret() public méthode

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

Usage Example

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