/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Queue/Attributes/Backoff.php
26 строк
516 B
Jack Bayliss
13.x-add-unit-docblock-to-attrs (#60431)
07 июн 2026, 18:42
Не верифицирован
07 июн 2026, 18:42
1f6a84b
Код
Авторство
О чём код?
<?php namespace Illuminate\Queue\Attributes; use Attribute; #[Attribute(Attribute::TARGET_CLASS)] class Backoff { /** * The backoff values. * * @var array<int>|int */ public array|int $backoff; /** * Create a new attribute instance. * * @param array<int>|int ...$backoff Seconds to wait before retrying the job. */ public function __construct(array|int ...$backoff) { $this->backoff = count($backoff) === 1 ? $backoff[0] : $backoff; } }