The doc comment array<non-empty-string, MapperInterface> at position 2 could not be parsed: Unknown type name 'non-empty-string' at position 2 in array<non-empty-string, MapperInterface>.
Loading history...
19
private array $mappers = [];
20
21
7418
public function __construct(
22
private ?ORMInterface $orm,
23
private FactoryInterface $factory
24
) {
25
}
26
27
6826
public function getMapper(string $entity): MapperInterface
28
{
29
6826
if (isset($this->mappers[$entity])) {
30
5788
return $this->mappers[$entity];
31
}
32
6826
if ($this->orm === null) {
33
throw new ORMException('Mapper is not prepared.');