public function storeAccessTokenForSeconds($access_token, $seconds, array $param = [])
    {
        $time = time() + (int) $seconds - 1;

        if ($this->save($access_token, $time) === true) {
            $this->logger->info(__CLASS__, 'store', sprintf('Access token stored for %ss', $seconds));
        }

        // if cannot save, an exception will be raised
        return true;
    }
public function storeAccessTokenForSeconds($access_token, $seconds, array $param = [])
    {
        $time = time() + (int) $seconds - 1;

        if ($this->save($access_token, $time) === true) {
            $this->logger->info(__CLASS__, 'store', sprintf('Access token stored for %ss', $seconds));
        }

        // if cannot save, an exception will be raised
        return true;
    }
public function storeAccessTokenForSeconds ( $ access_token , $ seconds , array $ param = [ ] ) { $ time = time ( ) + ( int ) $ seconds - 1 ; if ( $ this -> save ( $ access_token , $ time ) === true ) { $ this -> logger -> info ( __CLASS__ , 'store' , sprintf ( 'Access token stored for %ss' , $ seconds ) ) ; } // if cannot save, an exception will be raised return true ; }
Store an access token for a amount of time

@param string $access_token
@param int $seconds
@param array $param

@return bool  Successfully store or not
Store an access token for a amount of time