diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/Cache.php')
-rw-r--r-- | vendor/doctrine/orm/src/Mapping/Cache.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/Cache.php b/vendor/doctrine/orm/src/Mapping/Cache.php new file mode 100644 index 0000000..3161ab3 --- /dev/null +++ b/vendor/doctrine/orm/src/Mapping/Cache.php | |||
@@ -0,0 +1,19 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Mapping; | ||
6 | |||
7 | use Attribute; | ||
8 | |||
9 | /** Caching to an entity or a collection. */ | ||
10 | #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY)] | ||
11 | final class Cache implements MappingAttribute | ||
12 | { | ||
13 | /** @psalm-param 'READ_ONLY'|'NONSTRICT_READ_WRITE'|'READ_WRITE' $usage */ | ||
14 | public function __construct( | ||
15 | public readonly string $usage = 'READ_ONLY', | ||
16 | public readonly string|null $region = null, | ||
17 | ) { | ||
18 | } | ||
19 | } | ||