ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
StorableFileResource.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
10 
17 {
18 
22  private $identification;
26  private $revisions = [];
30  private $stakeholders = [];
34  private $storage_id = '';
35 
36 
43  {
44  $this->identification = $identification;
45  $this->revisions = new RevisionCollection($identification);
46  }
47 
48 
53  {
54  return $this->identification;
55  }
56 
57 
61  public function getCurrentRevision() : Revision
62  {
63  return $this->revisions->getCurrent();
64  }
65 
66 
70  public function getAllRevisions() : array
71  {
72  return $this->revisions->getAll();
73  }
74 
75 
79  public function addRevision(Revision $revision) : void
80  {
81  $this->revisions->add($revision);
82  }
83 
84 
88  public function setRevisions(RevisionCollection $collection) : void
89  {
90  $this->revisions = $collection;
91  }
92 
93 
97  public function getStakeholders() : array
98  {
99  return $this->stakeholders;
100  }
101 
102 
109  {
110  $this->stakeholders = $stakeholders;
111 
112  return $this;
113  }
114 
115 
119  public function getStorageId() : string
120  {
121  return $this->storage_id;
122  }
123 
124 
128  public function setStorageId(string $storage_id) : void
129  {
130  $this->storage_id = $storage_id;
131  }
132 }
__construct(ResourceIdentification $identification)
StorableFileResource constructor.