blob: fde45759312507f180207d05bfff13728b5cab67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache;
class CollectionCacheEntry implements CacheEntry
{
/** @param CacheKey[] $identifiers List of entity identifiers hold by the collection */
public function __construct(public readonly array $identifiers)
{
}
/**
* Creates a new CollectionCacheEntry
*
* This method allows for Doctrine\Common\Cache\PhpFileCache compatibility
*
* @param array<string, mixed> $values array containing property values
*/
public static function __set_state(array $values): CollectionCacheEntry
{
return new self($values['identifiers']);
}
}
|