MOON
Server: Apache
System: Linux res.emeff.ca 3.10.0-962.3.2.lve1.5.24.10.el7.x86_64 #1 SMP Wed Mar 20 07:36:02 EDT 2019 x86_64
User: accemeff (1004)
PHP: 7.0.33
Disabled: NONE
Upload Files
File: /home/accemeff/vendor/yiisoft/yii2-queue/src/gii/default/job.php
<?php
/**
 * @var \yii\web\View $this
 * @var \yii\queue\gii\Generator $generator
 * @var string $jobClass
 * @var string $$ns
 * @var string $baseClass
 * @var string[] $interfaces
 * @var string[] $properties
 */
if ($interfaces) {
    $implements = 'implements ' . implode(', ', $interfaces);
} else {
    $implements = '';
}

echo "<?php\n";
?>

namespace <?= $ns ?>;

/**
 * Class <?= $jobClass ?>.
 */
class <?= $jobClass ?> extends <?= $baseClass ?> <?= $implements ?>

{
<?php foreach ($properties as $property): ?>
    public $<?= $property ?>;

<?php endforeach; ?>
    /**
     * @inheritdoc
     */
    public function execute($queue)
    {
    }
<?php if ($generator->retryable): ?>

    /**
     * @inheritdoc
     */
    public function getTtr()
    {
        return 60;
    }

    /**
     * @inheritdoc
     */
    public function canRetry($attempt, $error)
    {
        return $attempt < 3;
    }
<?php endif; ?>
}