PHP Класс ApiPlatform\Core\Hal\Serializer\ItemNormalizer

Автор: Kévin Dunglas ([email protected])
Наследование: extends ApiPlatform\Core\Serializer\AbstractItemNormalizer, use trait ApiPlatform\Core\Serializer\ContextTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
denormalize ( $data, $class, $format = null, array $context = [] )
normalize ( $object, $format = null, array $context = [] )
supportsDenormalization ( $data, $type, $format = null )
supportsNormalization ( $data, $format = null )

Защищенные методы

Метод Описание
getAttributes ( $object, $format, array $context )

Приватные методы

Метод Описание
getComponents ( object $object, string $format = null, array $context ) : array Gets HAL components of the resource: states, links and embedded.
getHalCacheKey ( string $format = null, array $context ) : boolean | string Gets the cache key to use.
getRelationIri ( array | string $rel ) : string Gets the IRI of the given relation.
populateRelation ( array $data, object $object, string $format = null, array $context, array $components, string $type ) : array Populates _links and _embedded keys.

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

denormalize() публичный метод

public denormalize ( $data, $class, $format = null, array $context = [] )
$context array

getAttributes() защищенный метод

protected getAttributes ( $object, $format, array $context )
$context array

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

public normalize ( $object, $format = null, array $context = [] )
$context array

supportsDenormalization() публичный метод

public supportsDenormalization ( $data, $type, $format = null )

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

public supportsNormalization ( $data, $format = null )