You are here

protected function GetterMetadata::newReflectionMember in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/GetterMetadata.php \Symfony\Component\Validator\Mapping\GetterMetadata::newReflectionMember()

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

vendor/symfony/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\Mapping

Code

protected function newReflectionMember($objectOrClassName) {
  return new \ReflectionMethod($objectOrClassName, $this
    ->getName());
}