PHP Class Transport\Normalizer\FieldsNormalizer

Inheritance: extends Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer
Mostrar archivo Open project: opendatach/transport

Public Methods

Method Description
__construct ( array $fields )
isFieldSet ( string $field ) returns true if the given field should be included in the result.
normalize ( $data, $format = null, array $context = [] )
supportsNormalization ( $data, $format = null )

Private Methods

Method Description
getFieldTree ( $field )

Method Details

__construct() public method

public __construct ( array $fields )
$fields array

isFieldSet() public method

returns true if the given field should be included in the result.
public isFieldSet ( string $field )
$field string the field (e.g from)

normalize() public method

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

supportsNormalization() public method

public supportsNormalization ( $data, $format = null )