Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (27 sloc) 777 Bytes
<?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);
}
You can’t perform that action at this time.