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

v0.4.0 2018-11-27 04:23 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;
    }
}