PHP Интерфейс Symfony\Component\Serializer\Normalizer\NormalizerInterface

Автор: Jordi Boggiano ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
normalize ( object $object, string $format = null ) : array | scalar Normalizes an object into a set of arrays/scalars
supportsNormalization ( mixed $data, string $format = null ) : boolean Checks whether the given class is supported for normalization by this normalizer

Описание методов

normalize() публичный Метод

Normalizes an object into a set of arrays/scalars
public normalize ( object $object, string $format = null ) : array | scalar
$object object object to normalize
$format string format the normalization result will be encoded as
Результат array | scalar

supportsNormalization() публичный Метод

Checks whether the given class is supported for normalization by this normalizer
public supportsNormalization ( mixed $data, string $format = null ) : boolean
$data mixed Data to normalize.
$format string The format being (de-)serialized from or into.
Результат boolean