for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Asad\OAuth2\Client\AccessToken;
use League\OAuth2\Client\Token\AccessToken;
class ZohoAccessToken extends AccessToken
{
/**
* @var string
*/
protected $apiDomain;
protected $tokenType;
* api_domain and token type will get everytime
public function __construct(array $options = [])
if (!empty($options['api_domain'])) {
$this->apiDomain = $options['api_domain'];
}
if (!empty($options['token_type'])) {
$this->tokenType = $options['token_type'];
parent::__construct($options);
* Zoho API domain name
* @return string
public function getApiDomain()
return $this->apiDomain;
* Oauth2 Bearer Toekn type
public function getTokenType()
return $this->tokenType;