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;
    }