PropertyMetadataInterface deprecated

interface PropertyMetadataInterface implements MetadataInterface deprecated since version 2.5, to be removed in 3.0. Use {@link Mapping\PropertyMetadataInterface} instead. A container for validation metadata of a property. What exactly you define as "property" is up to you. The validator expects implementations of {@link MetadataInterface} that contain constraints and optionally a list of named properties that also have constraints (and may have further sub properties). Such properties a

PropertyMetadataInterface::getPropertyName()

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

PropertyMetadataInterface deprecated::getPropertyName()

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

PropertyMetadataInterface deprecated::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.

PropertyMetadataContainerInterface deprecated::hasPropertyMetadata()

bool hasPropertyMetadata(string $property) Check if there's any metadata attached to the given named property. Parameters string $property The property name. Return Value bool

PropertyMetadataInterface

interface PropertyMetadataInterface implements MetadataInterface Stores all metadata needed for validating the value of a class property. Most importantly, the metadata stores the constraints against which the property's value should be validated. Additionally, the metadata stores whether objects stored in the property should be validated against their class' metadata and whether traversable objects should be traversed or not. Methods int getCascadingStrategy() Returns the strategy for c

PropertyMetadataContainerInterface deprecated::getPropertyMetadata()

PropertyMetadataInterface[] getPropertyMetadata(string $property) Returns all metadata instances for the given named property. If your implementation does not support properties, simply throw an exception in this method (for example a BadMethodCallException). Parameters string $property The property name. Return Value PropertyMetadataInterface[] A list of metadata instances. Empty if no metadata exists for the property.

PropertyMetadata

class PropertyMetadata extends MemberMetadata Stores all metadata needed for validating a class property. The value of the property is obtained by directly accessing the property. The property will be accessed by reflection, so the access of private and protected properties is supported. This class supports serialization and cloning. Properties Constraint[] $constraints from GenericMetadata array $constraintsByGroup from GenericMetadata int $cascadingStrategy The strategy for cascad

PropertyMetadataContainerInterface deprecated

interface PropertyMetadataContainerInterface deprecated since version 2.5, to be removed in 3.0. Use {@link Mapping\ClassMetadataInterface} instead. A container for {@link PropertyMetadataInterface} instances. Methods bool hasPropertyMetadata(string $property) Check if there's any metadata attached to the given named property. PropertyMetadataInterface[] getPropertyMetadata(string $property) Returns all metadata instances for the given named property. Details

PropertyListExtractorInterface

interface PropertyListExtractorInterface Extracts the list of properties available for the given class. Methods string[]|null getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. Details string[]|null getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. Parameters string $class array $context Return Value string[]|null