You are here

public function ClassMetadata::getReflectionClass in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::getReflectionClass()
  2. 7 lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php \Doctrine\Common\Persistence\Mapping\ClassMetadata::getReflectionClass()

Returns a ReflectionClass instance for this class.

Return value

\ReflectionClass

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php, line 490

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;
}