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

Breadcrumb

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

function MemberMetadata::getReflectionMember

Returns the reflection instance for accessing the member's value.

1 call to MemberMetadata::getReflectionMember()
PropertyMetadata::getPropertyValue in vendor/symfony/validator/Mapping/PropertyMetadata.php
Extracts the value of the property from the given container.

File

vendor/symfony/validator/Mapping/MemberMetadata.php, line 133

Class

MemberMetadata
Stores all metadata needed for validating a class property.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getReflectionMember(object|string $objectOrClassName) : \ReflectionMethod|\ReflectionProperty {
    $className = \is_string($objectOrClassName) ? $objectOrClassName : $objectOrClassName::class;
    if (!isset($this->reflMember[$className])) {
        $this->reflMember[$className] = $this->newReflectionMember($objectOrClassName);
    }
    return $this->reflMember[$className];
}

API Navigation

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