interface PropertyMetadataContainerInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/PropertyMetadataContainerInterface.php \Symfony\Component\Validator\PropertyMetadataContainerInterface
A container for {@link PropertyMetadataInterface} instances.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\PropertyMetadataContainerInterface
Expanded class hierarchy of PropertyMetadataContainerInterface
All classes that implement PropertyMetadataContainerInterface
Deprecated
since version 2.5, to be removed in 3.0. Use {@link Mapping\ClassMetadataInterface} instead.
2 files declare their use of PropertyMetadataContainerInterface
- ClassMetadataInterface.php in vendor/
symfony/ validator/ Mapping/ ClassMetadataInterface.php - LegacyClassMetadata.php in vendor/
symfony/ validator/ Tests/ Fixtures/ LegacyClassMetadata.php
File
- vendor/
symfony/ validator/ PropertyMetadataContainerInterface.php, line 22
Namespace
Symfony\Component\ValidatorView source
interface PropertyMetadataContainerInterface {
/**
* Check if there's any metadata attached to the given named property.
*
* @param string $property The property name.
*
* @return bool
*/
public function hasPropertyMetadata($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 <tt>BadMethodCallException</tt>).
*
* @param string $property The property name.
*
* @return PropertyMetadataInterface[] A list of metadata instances. Empty if
* no metadata exists for the property.
*/
public function getPropertyMetadata($property);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PropertyMetadataContainerInterface:: |
public | function | Returns all metadata instances for the given named property. | 1 |
PropertyMetadataContainerInterface:: |
public | function | Check if there's any metadata attached to the given named property. | 1 |