PHP code example of shippinno / job
1. Go to this page and download the library: Download shippinno/job library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shippinno / job example snippets
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;
}
}