diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/CollectionHydrator.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Cache/CollectionHydrator.php | 21 |
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 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Cache; | ||
| 6 | |||
| 7 | use Doctrine\Common\Collections\Collection; | ||
| 8 | use Doctrine\ORM\Mapping\ClassMetadata; | ||
| 9 | use Doctrine\ORM\PersistentCollection; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * Hydrator cache entry for collections | ||
| 13 | */ | ||
| 14 | interface 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 | } | ||
