PropertyPath::getLength()

int getLength() Returns the length of the property path, i.e. the number of elements. Return Value int The path length

PropertyPath::getIterator()

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

PropertyPath::getElements()

array getElements() Returns the elements of the property path as array. Return Value array An array of property/index names

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

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

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::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

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::getPropertyValue()

mixed getPropertyValue(mixed $containingValue) Extracts the value of the property from the given container. Parameters mixed $containingValue The container to extract the property value from Return Value mixed The value of the property