/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Workflow/Tests/Subject.php
39 строк
808 B
Nicolas Grekas
Use typed properties in tests as much as possible
25 июл 2023, 11:53
25 июл 2023, 11:53
4ad506b
Код
Авторство
О чём код?
<?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\Workflow\Tests; final class Subject { private string|array|null $marking; private array $context = []; public function __construct($marking = null) { $this->marking = $marking; } public function getMarking(): string|array|null { return $this->marking; } public function setMarking($marking, array $context = []): void { $this->marking = $marking; $this->context = $context; } public function getContext(): array { return $this->context; } }