/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/NestedClassTransform/Dog.php
23 строки
506 B
lazerg
[ObjectMapper] Skip nested mapping when no target fits the destination property type
05 авг 2026, 18:31
05 авг 2026, 18:31
8feca76
Код
Авторство
О чём код?
<?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\NestedClassTransform; class Dog extends Animal { public static function transform(Pet $value): self { $target = new self(); $target->name = $value->name; return $target; } }