Abstract Class shardimage\shardimagephp\models\accesstoken\AccessToken

Inheritanceshardimage\shardimagephp\models\accesstoken\AccessToken » shardimage\shardimagephpapi\base\BaseObject
Subclassesshardimage\shardimagephp\models\accesstoken\ImageUrlAccessToken, shardimage\shardimagephp\models\accesstoken\UploadAccessToken

Implementing AccessToken

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$createdAt integer Timestamp of creation shardimage\shardimagephp\models\accesstoken\AccessToken
$expiry integer Timestamp expiration of the access token shardimage\shardimagephp\models\accesstoken\AccessToken
$extra mixed Additional extras for the access token shardimage\shardimagephp\models\accesstoken\AccessToken
$id string ID of access token, can be used as accessToken in client configuration shardimage\shardimagephp\models\accesstoken\AccessToken
$limit integer Request limits of the access token shardimage\shardimagephp\models\accesstoken\AccessToken

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates the object, populates the properties and calls the "init" method. shardimage\shardimagephp\models\accesstoken\AccessToken
__get() Returns the value of a non-defined property, it there is a getter method. shardimage\shardimagephpapi\base\BaseObject
__isset() Does the non-defined property with a getter exist and is it not NULL? shardimage\shardimagephpapi\base\BaseObject
__set() Sets the value of a non-defined property, if there is a setter method. shardimage\shardimagephpapi\base\BaseObject
__unset() Sets the value of a non-defined property to NULL, if there is a setter. shardimage\shardimagephpapi\base\BaseObject
getType() Getting the type of access token shardimage\shardimagephp\models\accesstoken\AccessToken
toArray() Converts the object an array. shardimage\shardimagephpapi\base\BaseObject

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
ensureClass() Creates an object from the given parameters. shardimage\shardimagephpapi\base\BaseObject
init() Custom initialization. shardimage\shardimagephpapi\base\BaseObject

Property Details

$createdAt public property

Timestamp of creation

public integer $createdAt null
$expiry public property

Timestamp expiration of the access token

public integer $expiry null
$extra public property

Additional extras for the access token

public mixed $extra null
$id public property

ID of access token, can be used as accessToken in client configuration

public string $id null
$limit public property

Request limits of the access token

public integer $limit null

Method Details

__construct() public method

Creates the object, populates the properties and calls the "init" method.

public void __construct ( $config = [] )
$config array

Predefined properties

getType() public abstract method

Getting the type of access token

public abstract void getType ( )