public function __invoke(OutputTypeEnum $type, string $buffer) : void { if ($type === OutputTypeEnum::OUT) { $this->outBuffer[] = $buffer; } elseif ($type === OutputTypeEnum::ERR) { $this->errorBuffer[] = $buffer; } }