ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
CloneRevision.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
8 
13 class CloneRevision 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 = '';
43  protected $revision_to_clone;
44 
50  {
51  $this->identification = $identification;
52  $this->revision_to_clone = $revision_to_clone;
53  }
54 
59  {
60  return $this->identification;
61  }
62 
66  public function setVersionNumber(int $version_number) : void
67  {
68  $this->version_number = $version_number;
69  }
70 
71  public function getVersionNumber() : int
72  {
73  return $this->version_number;
74  }
75 
79  public function getInformation() : Information
80  {
81  return $this->information ?? new FileInformation();
82  }
83 
88  {
89  $this->information = $information;
90  }
91 
95  public function setUnavailable() : void
96  {
97  $this->available = false;
98  }
99 
103  public function isAvailable() : bool
104  {
105  return $this->available;
106  }
107 
111  public function getOwnerId() : int
112  {
113  return $this->owner_id;
114  }
115 
120  public function setOwnerId(int $owner_id) : CloneRevision
121  {
122  $this->owner_id = $owner_id;
123  return $this;
124  }
125 
130  public function setTitle(string $title) : Revision
131  {
132  $this->title = $title;
133  return $this;
134  }
135 
139  public function getTitle() : string
140  {
141  return $this->title;
142  }
143 
147  public function getRevisionToClone() : FileRevision
148  {
150  }
151 
152 }
__construct(ResourceIdentification $identification, FileRevision $revision_to_clone)
Revision constructor.