protected function GetterMetadata::newReflectionMember in Plug 7
Creates a new reflection instance for accessing the member's value.
Must be implemented by subclasses.
Parameters
object|string $objectOrClassName The object or the class name:
Return value
\ReflectionMethod|\ReflectionProperty The reflection instance
Overrides MemberMetadata::newReflectionMember
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ GetterMetadata.php, line 73
Class
- GetterMetadata
- Stores all metadata needed for validating a class property via its getter method.
Namespace
Symfony\Component\Validator\MappingCode
protected function newReflectionMember($objectOrClassName) {
return new \ReflectionMethod($objectOrClassName, $this
->getName());
}