public static function fromProcess(Process $process)
    {
        $message        = 'PHP Code failed to execute. Error: "%s"';
        $processOutput  = $process->getErrorOutput() ? $process->getErrorOutput() : $process->getOutput();
        return new static(sprintf($message, $processOutput));
    }
public static function fromProcess(Process $process)
    {
        $message        = 'PHP Code failed to execute. Error: "%s"';
        $processOutput  = $process->getErrorOutput() ? $process->getErrorOutput() : $process->getOutput();
        return new static(sprintf($message, $processOutput));
    }
public static function fromProcess ( Process $ process ) { $ message = 'PHP Code failed to execute. Error: "%s"' ; $ processOutput = $ process -> getErrorOutput ( ) ? $ process -> getErrorOutput ( ) : $ process -> getOutput ( ) ; return new static ( sprintf ( $ message , $ processOutput ) ) ; }
Static constructor to create an instance from a failed `Symfony\Component\Process\Process` instance.

@param Process $process The `Symfony\Component\Process\Process` instance which failed.
@return static
Static constructor to create an instance from a failed Symfony \ Component \ Process \ Process instance .