public function __invoke(OutputTypeEnum $type, string $buffer) : void { fwrite($this->handle, $buffer); if ($this->decorated) { ($this->decorated)($type, $buffer); } }