protected function addToScopes(TreeScope $scope)
    {
        $this->scopes[] = $scope;
        $this->scopeByName[$scope->getName()] = $scope;
        $this->scopeByModelRootId[$scope->getModelRootId()] = $scope;
        $this->scopeByPathPrefix[$scope->getPathPrefix()] = $scope;
    }
protected function addToScopes(TreeScope $scope)
    {
        $this->scopes[] = $scope;
        $this->scopeByName[$scope->getName()] = $scope;
        $this->scopeByModelRootId[$scope->getModelRootId()] = $scope;
        $this->scopeByPathPrefix[$scope->getPathPrefix()] = $scope;
    }
protected function addToScopes ( TreeScope $ scope ) { $ this -> scopes [ ] = $ scope ; $ this -> scopeByName [ $ scope -> getName ( ) ] = $ scope ; $ this -> scopeByModelRootId [ $ scope -> getModelRootId ( ) ] = $ scope ; $ this -> scopeByPathPrefix [ $ scope -> getPathPrefix ( ) ] = $ scope ; }
Adds the passed scope to the scope array

@param \Cmsable\Routing\TreeScope\TreeScope $treeScope
@return void
Adds the passed scope to the scope array