public function hasScope($scope)
    {
        if ($this->scopes === null) {
            $this->getScopes();
        }

        return isset($this->scopes[$scope]);
    }
public function hasScope($scope)
    {
        if ($this->scopes === null) {
            $this->getScopes();
        }

        return isset($this->scopes[$scope]);
    }
public function hasScope ( $ scope ) { if ( $ this -> scopes === null ) { $ this -> getScopes ( ) ; } return isset ( $ this -> scopes [ $ scope ] ) ; }
Check if access token has an associated scope

@param string $scope Scope to check

@return bool
Check if access token has an associated scope