public function setProjectDirectory(string $dir): Application
    {
        if (is_dir($dir)) {
            $this->projectDir = $dir;
        }

        return $this;
    }
public function setProjectDirectory(string $dir): Application
    {
        if (is_dir($dir)) {
            $this->projectDir = $dir;
        }

        return $this;
    }
public function setProjectDirectory ( string $ dir ) : Application { if ( is_dir ( $ dir ) ) { $ this -> projectDir = $ dir ; } return $ this ; }
Set the project directory. Used in determining version.

@param string $dir

@return $this
Set the project directory . Used in determining version .