class GetterMetadata extends MemberMetadata
Properties
| $class | ||
| $name | ||
| $property | ||
| $cascaded | ||
| $collectionCascaded | ||
| $collectionCascadedDeeply |
Methods
|
__construct(string $class, string $property)
Constructor. |
||
|
accept(ValidationVisitorInterface $visitor, mixed $value, string|string[] $group, string $propertyPath, $propagatedGroup = null)
Implementation of the Visitor design pattern. |
from MemberMetadata | |
| ElementMetadata |
addConstraint(Constraint $constraint)
Adds a constraint to this element. |
from MemberMetadata |
| array |
__sleep()
Returns the names of the properties that should be serialized. |
from MemberMetadata |
| string |
getName()
Returns the name of the member |
from MemberMetadata |
| string |
getClassName()
Returns the name of the backing PHP class. |
from MemberMetadata |
| string |
getPropertyName()
Returns the name of the property. |
from MemberMetadata |
| Boolean |
isPublic(object|string $objectOrClassName)
Returns whether this member is public |
from MemberMetadata |
| Boolean |
isProtected(object|string $objectOrClassName)
Returns whether this member is protected |
from MemberMetadata |
| Boolean |
isPrivate(object|string $objectOrClassName)
Returns whether this member is private |
from MemberMetadata |
| Boolean |
isCascaded()
Returns whether objects stored in this member should be validated |
from MemberMetadata |
| Boolean |
isCollectionCascaded()
Returns whether arrays or traversable objects stored in this member should be traversed and validated in each entry |
from MemberMetadata |
| Boolean |
isCollectionCascadedDeeply()
Returns whether arrays or traversable objects stored in this member should be traversed recursively for inner arrays/traversable objects |
from MemberMetadata |
| object |
getReflectionMember(object|string $objectOrClassName)
Returns the Reflection instance of the member |
from MemberMetadata |
| mixed |
getPropertyValue($object)
Extracts the value of the property from the given container. |
Details
at line 26
public
__construct(string $class, string $property)
Constructor.
in MemberMetadata at line 45
public
accept(ValidationVisitorInterface $visitor, mixed $value, string|string[] $group, string $propertyPath, $propagatedGroup = null)
Implementation of the Visitor design pattern.
Calls {@link ValidationVisitorInterface::visit} and then forwards the
<tt>accept()</tt>-call to all property metadata instances.
in MemberMetadata at line 57
public ElementMetadata
addConstraint(Constraint $constraint)
Adds a constraint to this element.
in MemberMetadata at line 83
public array
__sleep()
Returns the names of the properties that should be serialized.
in MemberMetadata at line 98
public string
getName()
Returns the name of the member
in MemberMetadata at line 108
public string
getClassName()
Returns the name of the backing PHP class.
in MemberMetadata at line 118
public string
getPropertyName()
Returns the name of the property.
in MemberMetadata at line 130
public Boolean
isPublic(object|string $objectOrClassName)
Returns whether this member is public
in MemberMetadata at line 142
public Boolean
isProtected(object|string $objectOrClassName)
Returns whether this member is protected
in MemberMetadata at line 154
public Boolean
isPrivate(object|string $objectOrClassName)
Returns whether this member is private
in MemberMetadata at line 164
public Boolean
isCascaded()
Returns whether objects stored in this member should be validated
in MemberMetadata at line 175
public Boolean
isCollectionCascaded()
Returns whether arrays or traversable objects stored in this member should be traversed and validated in each entry
in MemberMetadata at line 186
public Boolean
isCollectionCascadedDeeply()
Returns whether arrays or traversable objects stored in this member should be traversed recursively for inner arrays/traversable objects
in MemberMetadata at line 198
public object
getReflectionMember(object|string $objectOrClassName)
Returns the Reflection instance of the member
at line 45
public mixed
getPropertyValue($object)
Extracts the value of the property from the given container.