public function hasScope($scope)
    {
        if (is_array($scope)) {
            foreach ($scope as $s) {
                if ($this->hasScope($s) === false) {
                    return false;
                }
            }

            return true;
        }

        return $this->getAccessToken()->hasScope($scope);
    }
public function hasScope($scope)
    {
        if (is_array($scope)) {
            foreach ($scope as $s) {
                if ($this->hasScope($s) === false) {
                    return false;
                }
            }

            return true;
        }

        return $this->getAccessToken()->hasScope($scope);
    }
public function hasScope ( $ scope ) { if ( is_array ( $ scope ) ) { foreach ( $ scope as $ s ) { if ( $ this -> hasScope ( $ s ) === false ) { return false ; } } return true ; } return $ this -> getAccessToken ( ) -> hasScope ( $ scope ) ; }
Check if the current request has all the scopes passed.

@param string|array $scope the scope(s) to check for existence

@return bool
Check if the current request has all the scopes passed .