public function hasScope(Scope $scope)
    {
        foreach ($scope->toArray() as $scopeToken) {
            if (!$this->hasScopeToken($scopeToken)) {
                return false;
            }
        }

        return true;
    }
public function hasScope(Scope $scope)
    {
        foreach ($scope->toArray() as $scopeToken) {
            if (!$this->hasScopeToken($scopeToken)) {
                return false;
            }
        }

        return true;
    }
public function hasScope ( Scope $ scope ) { foreach ( $ scope -> toArray ( ) as $ scopeToken ) { if ( ! $ this -> hasScopeToken ( $ scopeToken ) ) { return false ; } } return true ; }
Check if all scope tokens from the provided scope are in this object's
scope tokens.

@param Scope $scope the scope object to check

@return bool
Check if all scope tokens from the provided scope are in this object s scope tokens .