You are here

private function AuthTokenProvider::tokenExists in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExists()
  2. 8.2 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExists()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExists()
  2. 8.3 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExists()

Checks if token exists

10 calls to AuthTokenProvider::tokenExists()
AuthTokenProvider::getAccessToken in api-sdk-php/src/AuthApi/AuthTokenProvider.php
@inheritdoc
AuthTokenProvider::getAccessToken in vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php
@inheritdoc
AuthTokenProvider::getTokenType in api-sdk-php/src/AuthApi/AuthTokenProvider.php
@inheritdoc
AuthTokenProvider::getTokenType in vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php
@inheritdoc
AuthTokenProvider::tokenCanBeRenewed in api-sdk-php/src/AuthApi/AuthTokenProvider.php
Checks if token can be renewed

... See full list

File

vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php, line 111

Class

AuthTokenProvider
Class AuthTokenProvider @package Smartling\AuthApi

Namespace

Smartling\AuthApi

Code

private function tokenExists() {
  return is_array($this->data) && array_key_exists(self::RESPONSE_KEY_ACCESS_TOKEN, $this->data);
}