public static function command(string $command, bool $passThrough = false): CommandResultInterface
    {
        return new CommandResult(
            new static(
                $command,
                $passThrough
            )
        );
    }
public static function command(string $command, bool $passThrough = false): CommandResultInterface
    {
        return new CommandResult(
            new static(
                $command,
                $passThrough
            )
        );
    }
public static function command ( string $ command , bool $ passThrough = false ) : CommandResultInterface { return new CommandResult ( new static ( $ command , $ passThrough ) ) ; }
Creates new instance of self, and passes it to new instance of CommandResult

@param string $command
@param bool $passThrough

@return CommandResultInterface
Creates new instance of self and passes it to new instance of CommandResult