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/serializer/Mapping/ClassMetadata.php \Symfony\Component\Serializer\Mapping\ClassMetadata::getReflectionClass()

Returns a {@link \ReflectionClass} instance for this class.

Return value

\ReflectionClass

Overrides ClassMetadataInterface::getReflectionClass

File

vendor/symfony/serializer/Mapping/ClassMetadata.php, line 95

Class

ClassMetadata
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Component\Serializer\Mapping

Code

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