public function hasAccessToken(array $param = [])
    {
        if (! $this->hasStoredToken()) {
            $this->logger->debug(__CLASS__, 'has', sprintf('No access token found in %s', $this->getFilePath()));

            return false;
        }

        if ($this->isNotExpired()) {
            $this->logger->debug(__CLASS__, 'has', 'Valid access token found');

            return true;
        }

        $this->logger->debug(__CLASS__, 'has', sprintf('No valid access token found in %s', $this->getFilePath()));

        return false;
    }
public function hasAccessToken(array $param = [])
    {
        if (! $this->hasStoredToken()) {
            $this->logger->debug(__CLASS__, 'has', sprintf('No access token found in %s', $this->getFilePath()));

            return false;
        }

        if ($this->isNotExpired()) {
            $this->logger->debug(__CLASS__, 'has', 'Valid access token found');

            return true;
        }

        $this->logger->debug(__CLASS__, 'has', sprintf('No valid access token found in %s', $this->getFilePath()));

        return false;
    }
public function hasAccessToken ( array $ param = [ ] ) { if ( ! $ this -> hasStoredToken ( ) ) { $ this -> logger -> debug ( __CLASS__ , 'has' , sprintf ( 'No access token found in %s' , $ this -> getFilePath ( ) ) ) ; return false ; } if ( $ this -> isNotExpired ( ) ) { $ this -> logger -> debug ( __CLASS__ , 'has' , 'Valid access token found' ) ; return true ; } $ this -> logger -> debug ( __CLASS__ , 'has' , sprintf ( 'No valid access token found in %s' , $ this -> getFilePath ( ) ) ) ; return false ; }
Tell if there is a valid stored Access Token
It must answer false if there is one but it is expired

@param array $param

@return bool
Tell if there is a valid stored Access Token It must answer false if there is one but it is expired