ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
FileRevision.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
8
14class FileRevision implements Revision
15{
16
20 protected $available = true;
24 protected $identification;
28 protected $version_number = 0;
32 protected $information;
33
34
41 {
42 $this->identification = $identification;
43 }
44
45
50 {
52 }
53
54
58 public function setVersionNumber(int $version_number) : void
59 {
60 $this->version_number = $version_number;
61 }
62
63
64 public function getVersionNumber() : int
65 {
67 }
68
69
73 public function getInformation() : Information
74 {
75 return $this->information ?? new FileInformation();
76 }
77
78
83 {
84 $this->information = $information;
85 }
86
87
91 public function setUnavailable() : void
92 {
93 $this->available = false;
94 }
95
96
100 public function isAvailable() : bool
101 {
102 return $this->available;
103 }
104}
An exception for terminatinating execution or to throw for unit testing.
setInformation(Information $information)
__construct(ResourceIdentification $identification)
Revision constructor.