ILIAS  release_8 Revision v8.24
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;
33 private ?Token $token = null;
35
40 {
41 $this->identification = $identification;
42 }
43
48 {
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
63 public function withToken(Token $token): Revision
64 {
65 $clone = clone $this;
66 $clone->token = $token;
67 return $clone;
68 }
69
70 public function maybeGetToken(): ?Token
71 {
72 return $this->token;
73 }
74}
__construct(ResourceIdentification $identification)
NullRevision constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...