public function getByModelRootId($rootId){

        $this->fillScopes();

        if(!isset($this->scopeByModelRootId[$rootId])){
            throw new OutOfBoundsException("No scope with modelRootId '$rootId' found");
        }

        return $this->scopeByModelRootId[$rootId];

    }
public function getByModelRootId($rootId){

        $this->fillScopes();

        if(!isset($this->scopeByModelRootId[$rootId])){
            throw new OutOfBoundsException("No scope with modelRootId '$rootId' found");
        }

        return $this->scopeByModelRootId[$rootId];

    }
public function getByModelRootId ( $ rootId ) { $ this -> fillScopes ( ) ; if ( ! isset ( $ this -> scopeByModelRootId [ $ rootId ] ) ) { throw new OutOfBoundsException ( "No scope with modelRootId '$rootId' found" ) ; } return $ this -> scopeByModelRootId [ $ rootId ] ; }
Returns the scope by modelRootId

@throws OutOfBoundsException If no scope with root-id $rootId was found
@return \Cmsable\Routing\TreeScope\TreeScope
Returns the scope by modelRootId