/**
* @var array<string, mixed>
*/
private array
$entityMap =
[];
public function add(string
$entityName, Entity
$entity): void
{ if (!
isset($this->entityMap
[$entityName])) { $this->entityMap
[$entityName] =
[];
} $this->entityMap
[$entityName][$entity->
getUniqueIdentifier()] =
$entity;
} /**
* @return array<string|int>
*/
public function getEntities(): array
{ return array_keys($this->entityMap
);
} /**
* @return array<string|int>
*/