ILIAS  release_7 Revision v7.30-3-g800a261c036
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 
13 class FileRevision implements Revision
14 {
15 
19  protected $available = true;
23  protected $identification;
27  protected $version_number = 0;
31  protected $information;
35  protected $owner_id = 0;
39  protected $title = '';
40 
46  {
47  $this->identification = $identification;
48  }
49 
54  {
55  return $this->identification;
56  }
57 
61  public function setVersionNumber(int $version_number) : void
62  {
63  $this->version_number = $version_number;
64  }
65 
66  public function getVersionNumber() : int
67  {
68  return $this->version_number;
69  }
70 
74  public function getInformation() : Information
75  {
76  return $this->information ?? new FileInformation();
77  }
78 
83  {
84  $this->information = $information;
85  }
86 
90  public function setUnavailable() : void
91  {
92  $this->available = false;
93  }
94 
98  public function isAvailable() : bool
99  {
100  return $this->available;
101  }
102 
106  public function getOwnerId() : int
107  {
108  return $this->owner_id;
109  }
110 
115  public function setOwnerId(int $owner_id) : FileRevision
116  {
117  $this->owner_id = $owner_id;
118  return $this;
119  }
120 
125  public function setTitle(string $title) : Revision
126  {
127  $this->title = $title;
128  return $this;
129  }
130 
134  public function getTitle() : string
135  {
136  return $this->title;
137  }
138 
139 }
setInformation(Information $information)
__construct(ResourceIdentification $identification)
Revision constructor.