1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace Facade\Ignition\Tests\stubs\jobs;
- use Carbon\CarbonImmutable;
- use Exception;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Queue\SerializesModels;
- class QueueableJob implements ShouldQueue
- {
- use Dispatchable;
- use InteractsWithQueue;
- use Queueable;
- use SerializesModels;
- /** @var array */
- private $property;
- private string $uninitializedProperty;
- public function __construct(
- array $property,
- ?CarbonImmutable $retryUntilValue = null,
- ?int $tries = null,
- ?int $maxExceptions = null,
- ?int $timeout = null
- ) {
- $this->property = $property;
- $this->retryUntilValue = $retryUntilValue;
- $this->tries = $tries;
- $this->maxExceptions = $maxExceptions;
- $this->timeout = $timeout;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- throw new Exception("Die");
- }
- public function retryUntil()
- {
- return $this->retryUntilValue;
- }
- }
|