diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/Entity.php')
-rw-r--r-- | vendor/doctrine/orm/src/Mapping/Entity.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/Entity.php b/vendor/doctrine/orm/src/Mapping/Entity.php new file mode 100644 index 0000000..0e27913 --- /dev/null +++ b/vendor/doctrine/orm/src/Mapping/Entity.php | |||
@@ -0,0 +1,20 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Mapping; | ||
6 | |||
7 | use Attribute; | ||
8 | use Doctrine\ORM\EntityRepository; | ||
9 | |||
10 | /** @template T of object */ | ||
11 | #[Attribute(Attribute::TARGET_CLASS)] | ||
12 | final class Entity implements MappingAttribute | ||
13 | { | ||
14 | /** @psalm-param class-string<EntityRepository<T>>|null $repositoryClass */ | ||
15 | public function __construct( | ||
16 | public readonly string|null $repositoryClass = null, | ||
17 | public readonly bool $readOnly = false, | ||
18 | ) { | ||
19 | } | ||
20 | } | ||