| 1 | <?php | ||
| 5 | trait AllowsForRetries | ||
| 6 | { | ||
| 7 | /** | ||
| 8 | * Number of allowed retries. | ||
| 9 | * | ||
| 10 | * @var int | ||
| 11 | */ | ||
| 12 | protected $allowedRetries; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * Class name of the retry job. | ||
| 16 | * | ||
| 17 | * @var string | ||
| 18 | */ | ||
| 19 | protected $retryJob; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * Returns the number of allowed retries. | ||
| 23 | * | ||
| 24 | * @return int | ||
| 25 | */ | ||
| 26 | public function allowedRetries(): int | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Returns the class name of the retry job. | ||
| 33 | * | ||
| 34 | * @return null|string | ||
| 35 | */ | ||
| 36 | public function retryJob(): ? string | ||
| 40 | |||
| 41 | /** | ||
| 42 | * Callback for the retry job. | ||
| 43 | * | ||
| 44 | * @param mix $job | ||
| 45 | */ | ||
| 46 | public function withRetryJob($job) | ||
| 50 | } | ||
| 51 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.