ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
NullRevision.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
5use DateTimeImmutable;
9
15class NullRevision implements Revision
16{
17
22
23
30 {
31 $this->identification = $identification;
32 }
33
34
39 {
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}
An exception for terminatinating execution or to throw for unit testing.
__construct(ResourceIdentification $identification)
NullRevision constructor.
setInformation(Information $information)