public removeJob ( Crontab\Job $job ) : |
||
$job | Crontab\Job | |
return |
public function removeJob(Job $job)
{
unset($this->jobs[$job->getHash()]);
return $this;
}
/** * Delete tasks by ids. * * @param mixed $ids could either be an array of ids or a single id * @return $this */ public function delete($ids) { if (is_array($ids)) { $this->deleteByIds($ids); } else { $job = $this->find($ids); if ($job instanceof Job) { $this->crontab->removeJob($job); } } return $this; }