init
This commit is contained in:
20
backend/vendor/doctrine/orm/src/Mapping/Entity.php
vendored
Normal file
20
backend/vendor/doctrine/orm/src/Mapping/Entity.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\ORM\Mapping;
|
||||
|
||||
use Attribute;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
|
||||
/** @template T of object */
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
final class Entity implements MappingAttribute
|
||||
{
|
||||
/** @phpstan-param class-string<EntityRepository<T>>|null $repositoryClass */
|
||||
public function __construct(
|
||||
public readonly string|null $repositoryClass = null,
|
||||
public readonly bool $readOnly = false,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user