You are here

public function StaticReflectionParser::getReflectionClass in Drupal 10

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php \Drupal\Component\Annotation\Doctrine\StaticReflectionParser::getReflectionClass()

Gets the ReflectionClass equivalent for this class.

Return value

ReflectionClass

File

core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php, line 291
This class is a near-copy of Doctrine\Common\Reflection\StaticReflectionParser, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.2.

Class

StaticReflectionParser
Parses a file for namespaces/use/class declarations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function getReflectionClass() {
  return new StaticReflectionClass($this);
}