public function get(string $name)
    {
        $claims = $this->getAll();

        if (!array_key_exists($name, $claims)) {
            return null;
        }

        return $claims[$name];
    }
public function get(string $name)
    {
        $claims = $this->getAll();

        if (!array_key_exists($name, $claims)) {
            return null;
        }

        return $claims[$name];
    }
public function get ( string $ name ) { $ claims = $ this -> getAll ( ) ; if ( ! array_key_exists ( $ name , $ claims ) ) { return null ; } return $ claims [ $ name ] ; }
Gets the value for a claim

@param string $name The name of the claim to get
@return mixed|null The value of the claim if it exists, otherwise null
Gets the value for a claim