messages[] = $message; return $this; } public function track(): void { $this->doTrack(); $this->messages = []; } abstract protected function doTrack(): void; }