Symfony\Component\Security\Core\Authentication\Token\AbstractToken::hasAttribute PHP Method

hasAttribute() public method

Returns true if the attribute exists.
public hasAttribute ( string $name ) : boolean
$name string The attribute name
return boolean true if the attribute exists, false otherwise
    public function hasAttribute($name)
    {
        return array_key_exists($name, $this->attributes);
    }