tad\WPBrowser\Module\Support\UriToIndexMapper::setRoot PHP Метод

setRoot() публичный Метод

public setRoot ( string $root )
$root string
    public function setRoot($root)
    {
        $this->root = $root;
    }

Usage Example

Пример #1
0
 /**
  * @param string $rootFolder
  */
 public function setRootFolder($rootFolder)
 {
     if (!is_dir($rootFolder)) {
         throw new \InvalidArgumentException('Root folder [' . $rootFolder . '] is not an existing folder!');
     }
     $this->rootFolder = $rootFolder;
     $this->uriToIndexMapper->setRoot($rootFolder);
 }
All Usage Examples Of tad\WPBrowser\Module\Support\UriToIndexMapper::setRoot