Symfony\Component\Security\Core\Authentication\Token\AnonymousToken::getSecret PHP Метод

getSecret() публичный Метод

Returns the secret.
public getSecret ( ) : string
Результат string
    public function getSecret()
    {
        return $this->secret;
    }

Usage Example

Пример #1
0
 public function testGetKey()
 {
     $token = new AnonymousToken('foo', 'bar');
     $this->assertEquals('foo', $token->getSecret());
 }