/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/TransformSourceProperty/Target.php
26 строк
641 B
lazerg
[ObjectMapper] Add test coverage for mapping a source property with a non-throwing PropertyAccessor
21 июл 2026, 20:20
21 июл 2026, 20:20
418d886
Код
Авторство
О чём код?
<?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\TransformSourceProperty; use Symfony\Component\ObjectMapper\Attribute\Map; #[Map(source: Source::class)] class Target { #[Map(source: 'sourceProperty', transform: [self::class, 'transformProperty'])] public string $targetProperty; public static function transformProperty(string $value): string { return $value; } }