sent(); } else { $this->failed(); } } } public function sent(): void { ++$this->sentCount; } public function failed(): void { ++$this->failedCount; } public function getSentCount(): int { return $this->sentCount; } public function getFailedCount(): int { return $this->failedCount; } }