public function setProjectRoot($projectRoot)
    {
        $projectRootRegex = $projectRoot ? '/^'.preg_quote($projectRoot, '/').'[\\/]?/i' : null;
        $this->setProjectRootRegex($projectRootRegex);
    }
public function setProjectRoot($projectRoot)
    {
        $projectRootRegex = $projectRoot ? '/^'.preg_quote($projectRoot, '/').'[\\/]?/i' : null;
        $this->setProjectRootRegex($projectRootRegex);
    }
public function setProjectRoot ( $ projectRoot ) { $ projectRootRegex = $ projectRoot ? '/^' . preg_quote ( $ projectRoot , '/' ) . '[\\/]?/i' : null ; $ this -> setProjectRootRegex ( $ projectRootRegex ) ; }
Set the project root.

@param string|null $projectRoot the project root path

@return void
Set the project root .