You are here

public function ClassMetadata::getReflectionClass in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::getReflectionClass()
  2. 8 vendor/symfony/serializer/Mapping/ClassMetadata.php \Symfony\Component\Serializer\Mapping\ClassMetadata::getReflectionClass()
  3. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php \Doctrine\Common\Persistence\Mapping\ClassMetadata::getReflectionClass()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::getReflectionClass()

Returns a ReflectionClass instance for this class.

Return value

\ReflectionClass

File

vendor/symfony/validator/Mapping/ClassMetadata.php, line 498

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getReflectionClass() {
  if (!$this->reflClass) {
    $this->reflClass = new \ReflectionClass($this
      ->getClassName());
  }
  return $this->reflClass;
}