Overview
  • Namespace
  • Class

Namespaces

  • PayPal
    • Api
    • Auth
    • Cache
    • Common
    • Converter
    • Core
    • Exception
    • Handler
    • Log
    • Rest
    • Security
    • Transport
    • Validation

Classes

  • AuthorizationCache

Class AuthorizationCache

Abstract
Namespace: PayPal\Cache
Located at PayPal/Cache/AuthorizationCache.php

Methods summary

public static mixed|null
# pull( array|null $config = null, string $clientId = null )

A pull method which would read the persisted data based on clientId. If clientId is not provided, an array with all the tokens would be passed.

A pull method which would read the persisted data based on clientId. If clientId is not provided, an array with all the tokens would be passed.

Parameters

$config
$clientId

Returns

mixed|null
public static
# push( array|null $config, $clientId, $accessToken, $tokenCreateTime, $tokenExpiresIn )

Persists the data into a cache file provided in $CACHE_PATH

Persists the data into a cache file provided in $CACHE_PATH

Parameters

$config
$clientId
$accessToken
$tokenCreateTime
$tokenExpiresIn

Throws

Exception
public static boolean
# isEnabled( $config )

Determines from the Configuration if caching is currently enabled/disabled

Determines from the Configuration if caching is currently enabled/disabled

Parameters

$config

Returns

boolean
public static string
# cachePath( $config )

Returns the cache file path

Returns the cache file path

Parameters

$config

Returns

string

Properties summary

public static string $CACHE_PATH
# '/../../../var/auth.cache'
API documentation generated by ApiGen