diff --git a/src/Illuminate/Queue/Jobs/FakeJob.php b/src/Illuminate/Queue/Jobs/FakeJob.php index 8866afda072f..ef1d4e8bc04a 100644 --- a/src/Illuminate/Queue/Jobs/FakeJob.php +++ b/src/Illuminate/Queue/Jobs/FakeJob.php @@ -13,6 +13,13 @@ class FakeJob extends Job */ public $releaseDelay; + /** + * The number of attempts made to process the job. + * + * @var int + */ + public $attempts = 1; + /** * The exception the job failed with. * @@ -52,6 +59,16 @@ public function release($delay = 0) $this->releaseDelay = $delay; } + /** + * Get the number of times the job has been attempted. + * + * @return int + */ + public function attempts() + { + return $this->attempts; + } + /** * Delete the job from the queue. *