public static function spawn($cmd, $cwd = null, LoggerInterface $logger = null)
    {
        return new self($cmd, $cwd, $logger);
    }
public static function spawn($cmd, $cwd = null, LoggerInterface $logger = null)
    {
        return new self($cmd, $cwd, $logger);
    }
public static function spawn ( $ cmd , $ cwd = null , LoggerInterface $ logger = null ) { return new self ( $ cmd , $ cwd , $ logger ) ; }
Spawn a new instance of Expect for the given command.
You can optionally specify a working directory and a
PSR compatible logger to use.

@param  string $cmd
@param  string $cwd
@param LoggerInterface $logger

@return $this
Spawn a new instance of Expect for the given command . You can optionally specify a working directory and a PSR compatible logger to use .