ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BaseRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
30abstract class BaseRevision implements Revision
31{
32 private ?string $storage_id = null;
34
35 protected RevisionStatus $status = RevisionStatus::PUBLISHED;
36
40 public function __construct(private ResourceIdentification $identification)
41 {
42 }
43
48 {
49 return $this->identification;
50 }
51
52 public function setStorageID(string $storage_id): void
53 {
54 $this->storage_id = $storage_id;
55 }
56
57 public function getStorageID(): string
58 {
59 return $this->storage_id ?? '';
60 }
61
62
64 {
65 $clone = clone $this;
66 $clone->stream_resolver = $stream_resolver;
67 return $clone;
68 }
69
71 {
73 }
74
75 public function getStatus(): RevisionStatus
76 {
77 return $this->status;
78 }
79
80 public function setStatus(RevisionStatus $status): void
81 {
82 $this->status = $status;
83 }
84}
withStreamResolver(?StreamResolver $stream_resolver=null)
__construct(private ResourceIdentification $identification)
NullRevision constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...