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

Breadcrumb

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

function CodeUnit::reflectorForClass

@psalm-param class-string $className

Throws

ReflectionException

3 calls to CodeUnit::reflectorForClass()
CodeUnit::forClass in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param class-string $className
CodeUnit::forInterface in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param class-string $interfaceName
CodeUnit::forTrait in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param class-string $traitName

File

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

Class

CodeUnit
@psalm-immutable

Namespace

SebastianBergmann\CodeUnit

Code

private static function reflectorForClass(string $className) : ReflectionClass {
    try {
        return new ReflectionClass($className);
        // @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