public function setProjectRootRegex($projectRootRegex)
    {
        if ($projectRootRegex && @preg_match($projectRootRegex, null) === false) {
            throw new InvalidArgumentException('Invalid project root regex: '.$projectRootRegex);
        }

        $this->projectRootRegex = $projectRootRegex;
        $this->setStripPathRegex($projectRootRegex);
    }
public function setProjectRootRegex($projectRootRegex)
    {
        if ($projectRootRegex && @preg_match($projectRootRegex, null) === false) {
            throw new InvalidArgumentException('Invalid project root regex: '.$projectRootRegex);
        }

        $this->projectRootRegex = $projectRootRegex;
        $this->setStripPathRegex($projectRootRegex);
    }
public function setProjectRootRegex ( $ projectRootRegex ) { if ( $ projectRootRegex && @ preg_match ( $ projectRootRegex , null ) === false ) { throw new InvalidArgumentException ( 'Invalid project root regex: ' . $ projectRootRegex ) ; } $ this -> projectRootRegex = $ projectRootRegex ; $ this -> setStripPathRegex ( $ projectRootRegex ) ; }
Set the project root regex.

@param string|null $projectRootRegex the project root path

@return void
Set the project root regex .