ILIAS  release_8 Revision v8.24
IdentificationMap.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
23
29{
30 protected static array $map = [];
31
32 public function addToMap(IdentificationInterface $identification): void
33 {
34 self::$map[$identification->serialize()] = $identification;
35 }
36
37 public function isInMap(string $serialized): bool
38 {
39 return isset(self::$map[$serialized]);
40 }
41
42 public function getFromMap(string $serialized): IdentificationInterface
43 {
44 return self::$map[$serialized];
45 }
46}
addToMap(IdentificationInterface $identification)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...