/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/JsonStreamer/Transformer/PropertyValueTransformerInterface.php
32 строки
838 B
Mathias Arlaud
[JsonStreamer] Handle value objects
06 мар 2026, 17:50
06 мар 2026, 17:50
8cf1714
Код
Авторство
О чём код?
<?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\JsonStreamer\Transformer; use Symfony\Component\TypeInfo\Type; /** * Transforms a property value before stream writing and after stream reading. * * @author Mathias Arlaud <mathias.arlaud@gmail.com> */ interface PropertyValueTransformerInterface { /** * @param array{ * _current_object?: object, // When writing stream: the object holding the current property * ...<string, mixed>, * } $options */ public function transform(mixed $value, array $options = []): mixed; public static function getStreamValueType(): Type; }