collections[$name])) { throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"'); } $this->collections[$name] = $entityExistsFunction; } /** * @return (\Closure(string $id): bool)[] * @since 9.1.0 */ public function getEntityCollections(): array { return $this->collections; } }