PropertyPath::getElement()

string getElement(int $index) Returns the element at the given index in the property path. Parameters int $index The index key Return Value string A property or index name Exceptions OutOfBoundsException If the offset is invalid

PropertyPath::getIterator()

PropertyPathIteratorInterface getIterator() Returns a new iterator for this path. Return Value PropertyPathIteratorInterface

PropertyPath::getParent()

PropertyPath getParent() Returns the parent property path. The parent property path is the one that contains the same items as this one except for the last one. If this property path only contains one item, null is returned. Return Value PropertyPath The parent path or null

PropertyPath::isIndex()

bool isIndex(int $index) Returns whether the element at the given index is an array index. Parameters int $index The index in the property path Return Value bool Whether the element at this index is an array index Exceptions OutOfBoundsException If the offset is invalid

PropertyPath

class PropertyPath Contains utility methods for dealing with property paths. For more extensive functionality, use Symfony's PropertyAccess component. Methods static string append(string $basePath, string $subPath) Appends a path to a given property path. Details static string append(string $basePath, string $subPath) Appends a path to a given property path. If the base path is empty, the appended path will be returned unchanged. If the base pat

PropertyNormalizer::supportsDenormalization()

bool supportsDenormalization(mixed $data, string $type, string $format = null) Checks whether the given class is supported for denormalization by this normalizer. Parameters mixed $data Data to denormalize from. string $type The class to which the data should be denormalized. string $format The format being deserialized from. Return Value bool

PropertyPath

class PropertyPath implements IteratorAggregate, PropertyPathInterface Default implementation of {@link PropertyPathInterface}. Constants SINGULAR_SEPARATOR Character used for separating between plural and singular of an element. Methods __construct(PropertyPath|string $propertyPath) Constructs a property path from a string. string __toString() Returns the string representation of the property path. int getLength() Returns the length of the property path, i.e. the number o

PropertyNormalizer::supportsNormalization()

bool supportsNormalization(mixed $data, string $format = null) Checks whether the given class is supported for normalization by this normalizer. Parameters mixed $data Data to normalize. string $format The format being (de-)serialized from or into. Return Value bool

PropertyNormalizer

class PropertyNormalizer extends AbstractObjectNormalizer Converts between objects and arrays by mapping properties. The normalization process looks for all the object's properties (public and private). The result is a map from property names to property values. Property values are normalized through the serializer. The denormalization first looks at the constructor of the given class to see if any of the parameters have the same name as one of the properties. The constructor is then called

PropertyMetadataInterface::getPropertyName()

string getPropertyName() Returns the name of the property. Return Value string The property name