ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NullIdentification.php
Go to the documentation of this file.
2
9{
10
14 protected $wrapped_identification = null;
15
16
23 {
24 $this->wrapped_identification = $wrapped_identification;
25 }
26
27
31 public function serialize()
32 {
33 if ($this->wrapped_identification !== null) {
34 return $this->wrapped_identification->serialize();
35 }
36
37 return "";
38 }
39
40
44 public function unserialize($serialized)
45 {
46 return;
47 }
48
49
53 public function getClassName() : string
54 {
55 if ($this->wrapped_identification !== null) {
56 return $this->wrapped_identification->getClassName();
57 }
58
59 return "Null";
60 }
61
62
66 public function getInternalIdentifier() : string
67 {
68 if ($this->wrapped_identification !== null) {
69 return $this->wrapped_identification->getInternalIdentifier();
70 }
71
72 return "Null";
73 }
74
75
79 public function getProviderNameForPresentation() : string
80 {
81 if ($this->wrapped_identification !== null) {
82 return $this->wrapped_identification->getProviderNameForPresentation();
83 }
84
85 return "Null";
86 }
87}
An exception for terminatinating execution or to throw for unit testing.
__construct(IdentificationInterface $wrapped_identification=null)
NullIdentification constructor.