mediatekformation

PropertyMetadataInterface extends 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.

Tags
author

Bernhard Schussek bschussek@gmail.com

see
MetadataInterface
see
CascadingStrategy
see
TraversalStrategy

Table of Contents

findConstraints()  : array<string|int, Constraint>
Returns all constraints for a given validation group.
getCascadingStrategy()  : int
Returns the strategy for cascading objects.
getConstraints()  : array<string|int, Constraint>
Returns all constraints of this element.
getPropertyName()  : string
Returns the name of the property.
getPropertyValue()  : mixed
Extracts the value of the property from the given container.
getTraversalStrategy()  : int
Returns the strategy for traversing traversable objects.

Methods

findConstraints()

Returns all constraints for a given validation group.

public findConstraints(string $group) : array<string|int, Constraint>
Parameters
$group : string

The validation group

Return values
array<string|int, Constraint>

A list of constraint instances

getCascadingStrategy()

Returns the strategy for cascading objects.

public getCascadingStrategy() : int
Tags
see
CascadingStrategy
Return values
int

The cascading strategy

getConstraints()

Returns all constraints of this element.

public getConstraints() : array<string|int, Constraint>
Return values
array<string|int, Constraint>

A list of Constraint instances

getPropertyName()

Returns the name of the property.

public getPropertyName() : string
Return values
string

The property name

getPropertyValue()

Extracts the value of the property from the given container.

public getPropertyValue(mixed $containingValue) : mixed
Parameters
$containingValue : mixed

The container to extract the property value from

Return values
mixed

The value of the property

getTraversalStrategy()

Returns the strategy for traversing traversable objects.

public getTraversalStrategy() : int
Tags
see
TraversalStrategy
Return values
int

The traversal strategy

Search results