PHP 8.3.31
Preview: FakeJob.php Size: 1.65 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Queue/Jobs/FakeJob.php

<?php

namespace Illuminate\Queue\Jobs;

use Illuminate\Support\Str;

class FakeJob extends Job
{
    /**
     * The number of seconds the released job was delayed.
     *
     * @var int
     */
    public $releaseDelay;

    /**
     * The number of attempts made to process the job.
     *
     * @var int
     */
    public $attempts = 1;

    /**
     * The exception the job failed with.
     *
     * @var \Throwable
     */
    public $failedWith;

    /**
     * Get the job identifier.
     *
     * @return string
     */
    public function getJobId()
    {
        return once(fn () => (string) Str::uuid());
    }

    /**
     * Get the raw body of the job.
     *
     * @return string
     */
    public function getRawBody()
    {
        return '';
    }

    /**
     * Release the job back into the queue after (n) seconds.
     *
     * @param  \DateTimeInterface|\DateInterval|int  $delay
     * @return void
     */
    public function release($delay = 0)
    {
        $this->released = true;
        $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.
     *
     * @return void
     */
    public function delete()
    {
        $this->deleted = true;
    }

    /**
     * Delete the job, call the "failed" method, and raise the failed job event.
     *
     * @param  \Throwable|null  $exception
     * @return void
     */
    public function fail($exception = null)
    {
        $this->failed = true;
        $this->failedWith = $exception;
    }
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
3.09 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
2.21 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
1.10 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
1.65 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
8.64 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
670 B lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
2.97 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
2.50 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download
1.68 KB lrw-rw-rw- 2025-09-17 06:52:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).