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

Breadcrumb

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

function CodeUnit::reflectorForClassMethod

@psalm-param class-string $className

Throws

ReflectionException

3 calls to CodeUnit::reflectorForClassMethod()
CodeUnit::forClassMethod in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param class-string $className
CodeUnit::forInterfaceMethod in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param class-string $interfaceName
CodeUnit::forTraitMethod in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param class-string $traitName

File

vendor/sebastian/code-unit/src/CodeUnit.php, line 444

Class

CodeUnit
@psalm-immutable

Namespace

SebastianBergmann\CodeUnit

Code

private static function reflectorForClassMethod(string $className, string $methodName) : ReflectionMethod {
    try {
        return new ReflectionMethod($className, $methodName);
        // @codeCoverageIgnoreStart
    } catch (\ReflectionException $e) {
        throw new ReflectionException($e->getMessage(), $e->getCode(), $e);
    }
    // @codeCoverageIgnoreEnd
}

API Navigation

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