/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/ClassMap/SharedTargetWithTransform.php
26 строк
606 B
soyuka
[ObjectMapper] Handle N targets per source in reverse class map
16 июн 2026, 17:09
16 июн 2026, 17:09
4a7e199
Код
Авторство
О чём код?
<?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\ClassMap; use Symfony\Component\ObjectMapper\Attribute\Map; #[Map(source: SharedSource::class)] final class SharedTargetWithTransform { #[Map(source: 'value', transform: [self::class, 'double'])] public int $value; public static function double(mixed $v): int { return $v * 2; } }