PHP 인터페이스 Symfony\Component\Serializer\Normalizer\NormalizerInterface

저자: Jordi Boggiano ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 0 사용 예제들

공개 메소드들

메소드 설명
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