ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
NullIdentification.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
33 
39  {
40  $this->wrapped_identification = $wrapped_identification;
41  }
42 
46  public function serialize()
47  {
48  if ($this->wrapped_identification !== null) {
49  return $this->wrapped_identification->serialize();
50  }
51 
52  return "";
53  }
54 
58  public function unserialize($serialized) : void
59  {
60  // noting to do
61  }
62 
66  public function getClassName() : string
67  {
68  if ($this->wrapped_identification !== null) {
69  return $this->wrapped_identification->getClassName();
70  }
71 
72  return "Null";
73  }
74 
78  public function getInternalIdentifier() : string
79  {
80  if ($this->wrapped_identification !== null) {
81  return $this->wrapped_identification->getInternalIdentifier();
82  }
83 
84  return "Null";
85  }
86 
90  public function getProviderNameForPresentation() : string
91  {
92  if ($this->wrapped_identification !== null) {
93  return $this->wrapped_identification->getProviderNameForPresentation();
94  }
95 
96  return "Null";
97  }
98 
102  public function __serialize() : array
103  {
104  return ['data' => $this->serialize()];
105  }
106 
107  public function __unserialize(array $data) : void
108  {
109  $this->unserialize($data['data']);
110  }
111 }
$data
Definition: storeScorm.php:23
__construct(IdentificationInterface $wrapped_identification=null)
NullIdentification constructor.