public function getAccessToken()
    {
        if (is_string($this->access_token) && $this->isValidToken() ) {
            $this->accessToken = $this->token_type . ' ' . $this->access_token;

            return $this->accessToken;
        }

        return false;
    }
public function getAccessToken()
    {
        if (is_string($this->access_token) && $this->isValidToken() ) {
            $this->accessToken = $this->token_type . ' ' . $this->access_token;

            return $this->accessToken;
        }

        return false;
    }
public function getAccessToken ( ) { if ( is_string ( $ this -> access_token ) && $ this -> isValidToken ( ) ) { $ this -> accessToken = $ this -> token_type . ' ' . $ this -> access_token ; return $ this -> accessToken ; } return false ; }
Return the access token if it is valid
@return string
Return the access token if it is valid