completed = $completed; $this->cancelled = $cancelled; } /** * Increments cancelled job count by 1 */ public function cancel_job() { $this->cancelled ++; } /** * Increments completed job count by 1 */ public function complete_job() { $this->completed ++; } /** * @return int number of cancelled jobs */ public function cancelled() { return $this->cancelled; } /** * @return int number of completed jobs */ public function completed() { return $this->completed; } }