src/Util/ProcessBuilder.php
public function setWorkingDirectory($workingDirectory)
    {
        if ((null !== $workingDirectory) && !is_dir($workingDirectory)) {
            throw new InvalidArgumentException('The working directory must exist.');
        }

        $this->workingDirectory = $workingDirectory;

        return $this;
    }
public function setWorkingDirectory($workingDirectory)
    {
        if ((null !== $workingDirectory) && !is_dir($workingDirectory)) {
            throw new InvalidArgumentException('The working directory must exist.');
        }

        $this->workingDirectory = $workingDirectory;

        return $this;
    }
public function setWorkingDirectory ( $ workingDirectory ) { if ( ( null !== $ workingDirectory ) && ! is_dir ( $ workingDirectory ) ) { throw new InvalidArgumentException ( 'The working directory must exist.' ) ; } $ this -> workingDirectory = $ workingDirectory ; return $ this ; }
Sets the working directory.

@param null|string $workingDirectory The working directory.

@return ProcessBuilder

@throws InvalidArgumentException When the working directory is non null and does not exist.
Sets the working directory .