ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AbstractIdentificationProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
32{
33 protected string $class_name = '';
34 protected static array $instances = [];
35
42 public function __construct(protected Provider $provider, protected SerializerInterface $serializer, protected IdentificationMap $map)
43 {
44 $this->class_name = $this->provider::class;
45 }
46
51 public function fromSerializedString(string $serialized_string): IdentificationInterface
52 {
53 if ($this->map->isInMap($serialized_string)) {
54 return $this->map->getFromMap($serialized_string);
55 }
57 $identification = $this->serializer->unserialize($serialized_string);
58 $this->map->addToMap($identification);
59
60 return $identification;
61 }
62}
__construct(protected Provider $provider, protected SerializerInterface $serializer, protected IdentificationMap $map)
CoreIdentificationProvider constructor.
$provider
Definition: ltitoken.php:80