public function getReport(JobInterface $job) { foreach ($this->taskReports as $report) { if ($report->getJob() === $job) { return $report; } } return null; }