src/Exception/CommandException.php
public static function create(
        string $msg,
        int $exitCode,
        array $output,
        string $cmd, array
        $arguments = []
    ) : self {
        $e = new self($msg, $exitCode);

        $e->setOutput($output)
            ->setCmd($cmd)
            ->setArguments($arguments);

        return $e;
    }
public static function create(
        string $msg,
        int $exitCode,
        array $output,
        string $cmd, array
        $arguments = []
    ) : self {
        $e = new self($msg, $exitCode);

        $e->setOutput($output)
            ->setCmd($cmd)
            ->setArguments($arguments);

        return $e;
    }
public static function create ( string $ msg , int $ exitCode , array $ output , string $ cmd , array $ arguments = [ ] ) : self { $ e = new self ( $ msg , $ exitCode ) ; $ e -> setOutput ( $ output ) -> setCmd ( $ cmd ) -> setArguments ( $ arguments ) ; return $ e ; }
Creates an instance of this exception.

@param string $msg       - Message.
@param int    $exitCode  - Exit Code.
@param array  $output    - Output.
@param string $cmd       - Command executed.
@param array  $arguments - Command arguments.

@return self
Creates an instance of this exception .