vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadata.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\ORM\Mapping;
  4. /**
  5.  * {@inheritDoc}
  6.  *
  7.  * @todo remove or rename ClassMetadataInfo to ClassMetadata
  8.  * @template-covariant T of object
  9.  * @template-extends ClassMetadataInfo<T>
  10.  */
  11. class ClassMetadata extends ClassMetadataInfo
  12. {
  13.     /**
  14.      * Repeating the ClassMetadataInfo constructor to infer correctly the template with PHPStan
  15.      *
  16.      * @see https://github.com/doctrine/orm/issues/8709
  17.      *
  18.      * @param string $entityName The name of the entity class the new instance is used for.
  19.      * @psalm-param class-string<T> $entityName
  20.      */
  21.     public function __construct($entityName, ?NamingStrategy $namingStrategy null, ?TypedFieldMapper $typedFieldMapper null)
  22.     {
  23.         parent::__construct($entityName$namingStrategy$typedFieldMapper);
  24.     }
  25. }