Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

<?php | |
/** | |
* @link https://craftcms.com/ | |
* @copyright Copyright (c) Pixel & Tonic, Inc. | |
* @license https://craftcms.github.io/license/ | |
*/ | |
namespace craft\queue; | |
/** | |
* JobInterface defines the common interface to be implemented by job classes. | |
* A class implementing this interface should also use [[SavableComponentTrait]] and [[JobTrait]]. | |
* | |
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com> | |
* @since 3.0.0 | |
*/ | |
interface JobInterface extends \yii\queue\JobInterface | |
{ | |
/** | |
* Returns the description that should be used for the job. | |
* | |
* @return string|null | |
*/ | |
public function getDescription(); | |
/** | |
* @param \yii\queue\Queue|QueueInterface $queue The queue the job belongs to | |
*/ | |
public function execute($queue); | |
} |