ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
FileRevision.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
8 
14 class 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  {
51  return $this->identification;
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  {
66  return $this->version_number;
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 }
setInformation(Information $information)
__construct(ResourceIdentification $identification)
Revision constructor.