pendingJobs = $pendingJobs; $this->failedJobs = $failedJobs; } /** * Determine if all jobs have run exactly once. * * @return bool */ public function allJobsHaveRanExactlyOnce() { return ($this->pendingJobs - $this->failedJobs) === 0; } }