/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Scheduler/Event/FailureEvent.php
57 строк
1 KB
Nicolas Grekas
Merge branch '6.3' into 6.4
23 янв 2024, 17:51
23 янв 2024, 17:51
ae0a783
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Scheduler\Event; use Symfony\Component\Scheduler\Generator\MessageContext; use Symfony\Component\Scheduler\ScheduleProviderInterface; class FailureEvent { private bool $shouldIgnore = false; public function __construct( private readonly ScheduleProviderInterface $schedule, private readonly MessageContext $messageContext, private readonly object $message, private readonly \Throwable $error, ) { } public function getMessageContext(): MessageContext { return $this->messageContext; } public function getSchedule(): ScheduleProviderInterface { return $this->schedule; } public function getMessage(): object { return $this->message; } public function getError(): \Throwable { return $this->error; } public function shouldIgnore(?bool $shouldIgnore = null): bool { if (null !== $shouldIgnore) { $this->shouldIgnore = $shouldIgnore; } return $this->shouldIgnore; } }