summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Cache/CollectionHydrator.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/CollectionHydrator.php')
-rw-r--r--vendor/doctrine/orm/src/Cache/CollectionHydrator.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/CollectionHydrator.php b/vendor/doctrine/orm/src/Cache/CollectionHydrator.php
new file mode 100644
index 0000000..16a6572
--- /dev/null
+++ b/vendor/doctrine/orm/src/Cache/CollectionHydrator.php
@@ -0,0 +1,21 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Cache;
6
7use Doctrine\Common\Collections\Collection;
8use Doctrine\ORM\Mapping\ClassMetadata;
9use Doctrine\ORM\PersistentCollection;
10
11/**
12 * Hydrator cache entry for collections
13 */
14interface CollectionHydrator
15{
16 /** @param mixed[]|Collection $collection The collection. */
17 public function buildCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, array|Collection $collection): CollectionCacheEntry;
18
19 /** @return mixed[]|null */
20 public function loadCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, CollectionCacheEntry $entry, PersistentCollection $collection): array|null;
21}