19declare(strict_types=1);
40 $str =
"{$identification->getClassName()}{$divider}{$identification->getInternalIdentifier()}";
54 [$class_name, $internal_identifier] = explode(self::DIVIDER, $serialized_string);
62 return $f->identifier($internal_identifier);
68 public function canHandle(
string $serialized_identification) : bool
70 return preg_match(
'/(.*?)\|(.*)/m', $serialized_identification) > 0;
An exception for terminatinating execution or to throw for unit testing.
Class CoreIdentificationProvider.
Class LostIdentification.
canHandle(string $serialized_identification)
@inheritDoc
serialize(IdentificationInterface $identification)
The string MUST be shorter than 64 characters.
unserialize(string $serialized_string, IdentificationMap $map, ProviderFactory $provider_factory)
IdentificationInterface
Interface IdentificationInterface.
Interface SerializerInterface.
Interface ProviderFactory.
isRegistered(string $class_name)
getProviderByClassName(string $class_name)
isInstanceCreationPossible(string $class_name)