public function setRootDirectory($path)
    {
        if (@file_exists($path) && is_dir($path)) {
            $this->_root_dir = $path;
        } else {
            throw new InvalidArgumentException(
                sprintf('Root package directory "%s" not found !', $path)
            );
        }
        return $this;
    }
public function setRootDirectory($path)
    {
        if (@file_exists($path) && is_dir($path)) {
            $this->_root_dir = $path;
        } else {
            throw new InvalidArgumentException(
                sprintf('Root package directory "%s" not found !', $path)
            );
        }
        return $this;
    }
public function setRootDirectory ( $ path ) { if ( @ file_exists ( $ path ) && is_dir ( $ path ) ) { $ this -> _root_dir = $ path ; } else { throw new InvalidArgumentException ( sprintf ( 'Root package directory "%s" not found !' , $ path ) ) ; } return $ this ; }
Set the project root directory absolute path

@param string $path
@return self
@throws \InvalidArgumentException if the path doesn't exist
Set the project root directory absolute path