X
Create New Item
Item Type :
File
Folder
Item Name :
X
Search Results
vendor
paypal
paypal-checkout-sdk
lib
PayPalCheckoutSdk
Core
Cancel
Backup
Advanced Editor
Save
<?php namespace PayPalCheckoutSdk\Core; class AccessToken { public $token; public $tokenType; public $expiresIn; private $createDate; public function __construct($token, $tokenType, $expiresIn) { $this->token = $token; $this->tokenType = $tokenType; $this->expiresIn = $expiresIn; $this->createDate = time(); } public function isExpired() { return time() >= $this->createDate + $this->expiresIn; } }