A package for creating, serializing, storing, queueing, and running jobs.

v1.0.0 2022-04-13 02:01 UTC

README

Scrutinizer Code Quality Code Coverage Build Status

Basic Usage

Create a job

class EchoMessageJob extends Shippinno\Job\Application\Job
{
    /**
     * @param string $message
     */
    private $message;

    /**
     * @param string $message
     */
    public function __construct(string $message)
    {
        parent::__construct();
        $this->message = $message;
    }

    /**
     * @return string
     */
    public function message(): string
    {
        return $this->message;
    }

    /**
     * @return string
     */
    public function jobRunner(): string
    {
        return SomeJobRunner::class;
    }
}