/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/HydrateObject/SourceOnly.php
23 строки
555 B
Ryan RAJKOMAR
[ObjectMapper] Allow class FQDN arrays as TargetClass and SourceClass param
06 мар 2026, 18:16
06 мар 2026, 18:16
bf07ee6
Код
Авторство
О чём код?
<?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\ObjectMapper\Tests\Fixtures\HydrateObject; use Symfony\Component\ObjectMapper\Attribute\Map; class SourceOnly { public function __construct( #[Map(source: 'name')] public string $mappedName, #[Map(if: false)] public ?string $mappedDescription = null, ) { } }