PropertyMetadataContainerInterface deprecated

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

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[] 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.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Validator/PropertyMetadataContainerInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部