abstract class ElementMetadata
Properties
| Constraint[] | $constraints | |
| array | $constraintsByGroup |
Methods
| array |
__sleep()
Returns the names of the properties that should be serialized. |
|
|
__clone()
Clones this object. |
||
| ElementMetadata |
addConstraint(Constraint $constraint)
Adds a constraint to this element. |
|
| Constraint[] |
getConstraints()
Returns all constraints of this element. |
|
| Boolean |
hasConstraints()
Returns whether this element has any constraints. |
|
| array |
findConstraints(string $group)
Returns the constraints of the given group and global ones (* group). |
Details
at line 33
public array
__sleep()
Returns the names of the properties that should be serialized.
at line 44
public
__clone()
Clones this object.
at line 63
public ElementMetadata
addConstraint(Constraint $constraint)
Adds a constraint to this element.
at line 79
public Constraint[]
getConstraints()
Returns all constraints of this element.
at line 89
public Boolean
hasConstraints()
Returns whether this element has any constraints.
at line 101
public array
findConstraints(string $group)
Returns the constraints of the given group and global ones (* group).