PayPal\Auth\Oauth\MockOAuthDataStore::lookup_token PHP Method

lookup_token() public method

*}}}
public lookup_token ( $consumer, $token_type, $token )
    function lookup_token($consumer, $token_type, $token)
    {
        /*{{{*/
        $token_attrib = $token_type . "_token";
        if ($consumer->key == $this->consumer->key && $token == $this->{$token_attrib}->key) {
            return $this->{$token_attrib};
        }
        return null;
    }