src/Christiaan/PhpSandbox/SandboxBuilder.php
/**
     * @param string $dir
     * @return $this
     * @throws \InvalidArgumentException when dir does not exist
     */
@param string $dir
@return $this
@throws \InvalidArgumentException when dir does not exist
@param string $dir @return $this @throws \ InvalidArgumentException when dir does not exist
public function workingDirectory($dir)
    {
        if (!is_dir($dir))
            throw new \InvalidArgumentException();
        $this->workingDirectory = $dir;
        return $this;
    }
public function workingDirectory ( $ dir ) { if ( ! is_dir ( $ dir ) ) throw new \ InvalidArgumentException ( ) ; $ this -> workingDirectory = $ dir ; return $ this ; }
@param string $dir
 @return $this
 @throws \InvalidArgumentException when dir does not exist
@param string $dir @return $this @throws \ InvalidArgumentException when dir does not exist