ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StreamReplacementRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
32{
33 protected bool $available = true;
35 protected int $version_number = 0;
36 protected ?Information $information = null;
37 protected int $owner_id = 0;
38 protected string $title = '';
39
43 public function __construct(ResourceIdentification $identification, private FileStream $file_stream)
44 {
46 }
47
49 {
50 return $this->file_stream;
51 }
52
53 public function setVersionNumber(int $version_number): void
54 {
55 $this->version_number = $version_number;
56 }
57
58 public function getVersionNumber(): int
59 {
61 }
62
66 public function getInformation(): Information
67 {
68 return $this->information ?? new FileInformation();
69 }
70
72 {
73 $this->information = $information;
74 }
75
79 public function setUnavailable(): void
80 {
81 $this->available = false;
82 }
83
87 public function isAvailable(): bool
88 {
89 return $this->available;
90 }
91
92 public function getOwnerId(): int
93 {
94 return $this->owner_id;
95 }
96
97 public function setOwnerId(int $owner_id): self
98 {
99 $this->owner_id = $owner_id;
100 return $this;
101 }
102
106 public function setTitle(string $title): Revision
107 {
108 $this->title = $title;
109 return $this;
110 }
111
112 public function getTitle(): string
113 {
114 return $this->title;
115 }
116}
__construct(ResourceIdentification $identification, private FileStream $file_stream)
Revision constructor.
The base interface for all filesystem streams.
Definition: FileStream.php:32
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...