Psecio\Jwt\Jwt::__get PHP Метод

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

See if a claim type matches the requested property
public __get ( string $name ) : mixed
$name string Property name
Результат mixed Either a null if not found or the matching data
    public function __get($name)
    {
        foreach ($this->getClaims() as $claim) {
            if ($claim->getName() === $name) {
                return $claim->getValue();
            }
        }
        return null;
    }