/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Tui/Event/AbstractEvent.php
39 строк
893 B
Fabien Potencier
[Tui] Add the component
29 апр 2026, 11:20
29 апр 2026, 11:20
a818679
Код
Авторство
О чём код?
<?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\Tui\Event; use Symfony\Component\Tui\Widget\AbstractWidget; use Symfony\Contracts\EventDispatcher\Event as BaseEvent; /** * Base class for all TUI widget events. * * Extends Symfony's Event so it can be dispatched through * Symfony's EventDispatcher. Carries the target widget that * originated the event. * * @experimental * * @author Fabien Potencier <fabien@symfony.com> */ abstract class AbstractEvent extends BaseEvent { public function __construct( private readonly AbstractWidget $target, ) { } public function getTarget(): AbstractWidget { return $this->target; } }