Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GetterMetadata.php

function GetterMetadata::newReflectionMember

Overrides MemberMetadata::newReflectionMember

File

vendor/symfony/validator/Mapping/GetterMetadata.php, line 70

Class

GetterMetadata
Stores all metadata needed for validating a class property via its getter method.

Namespace

Symfony\Component\Validator\Mapping

Code

protected function newReflectionMember(object|string $objectOrClassName) : \ReflectionMethod|\ReflectionProperty {
    return new \ReflectionMethod($objectOrClassName, $this->getName());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal