ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
NullRevision.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
9 
15 class NullRevision implements Revision
16 {
17 
21  private $identification;
22 
23 
30  {
31  $this->identification = $identification;
32  }
33 
34 
39  {
40  return $this->identification;
41  }
42 
43 
47  public function getVersionNumber() : int
48  {
49  return 0;
50  }
51 
52 
56  public function getCreationDate() : DateTimeImmutable
57  {
58  return new DateTimeImmutable();
59  }
60 
61 
65  public function getInformation() : Information
66  {
67  return new FileInformation();
68  }
69 
70 
71  public function setInformation(Information $information)
72  {
73  }
74 
75 
76  public function setUnavailable() : void
77  {
78  // do nothing
79  }
80 
81 
85  public function isAvailable() : bool
86  {
87  return false;
88  }
89 }
__construct(ResourceIdentification $identification)
NullRevision constructor.
setInformation(Information $information)