public function MemberMetadata::getReflectionMember in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/MemberMetadata.php \Symfony\Component\Validator\Mapping\MemberMetadata::getReflectionMember()
Returns the reflection instance for accessing the member's value.
Parameters
object|string $objectOrClassName The object or the class name:
Return value
\ReflectionMethod|\ReflectionProperty The reflection instance
File
- vendor/
symfony/ validator/ Mapping/ MemberMetadata.php, line 239
Class
- MemberMetadata
- Stores all metadata needed for validating a class property.
Namespace
Symfony\Component\Validator\MappingCode
public function getReflectionMember($objectOrClassName) {
$className = is_string($objectOrClassName) ? $objectOrClassName : get_class($objectOrClassName);
if (!isset($this->reflMember[$className])) {
$this->reflMember[$className] = $this
->newReflectionMember($objectOrClassName);
}
return $this->reflMember[$className];
}