/** * @param JobExecution $jobExecution * * @return JobInstance */ public function removeJobExecution(JobExecution $jobExecution) { if ($this->jobExecutions->contains($jobExecution)) { $this->jobExecutions->removeElement($jobExecution); } return $this; }