| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class RecordRememberer implements SingletonInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var int[] |
||
| 26 | */ |
||
| 27 | protected $rememberedUids = []; |
||
| 28 | |||
| 29 | public function rememberRecords(iterable $records): void |
||
| 30 | { |
||
| 31 | foreach ($records as $record) { |
||
| 32 | $this->rememberRecordUid($record['uid'] ?? 0); |
||
| 33 | $this->rememberRecordUid($record['l18n_parent'] ?? 0); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | public function rememberRecordUid(int $uid): void |
||
| 40 | } |
||
| 41 | |||
| 42 | public function isRemembered(int $uid): bool |
||
| 47 |