ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use DateTimeImmutable;
26
31class NullRevision extends BaseRevision implements Revision
32{
36 public function getVersionNumber(): int
37 {
38 return 0;
39 }
40
44 public function getCreationDate(): DateTimeImmutable
45 {
46 return new DateTimeImmutable();
47 }
48
52 public function getInformation(): Information
53 {
54 return new FileInformation();
55 }
56
57 public function setInformation(Information $information): void
58 {
59 }
60
61 public function setUnavailable(): void
62 {
63 // do nothing
64 }
65
69 public function isAvailable(): bool
70 {
71 return false;
72 }
73
74 public function getOwnerId(): int
75 {
76 return 0;
77 }
78
79 public function setTitle(string $title): Revision
80 {
81 // do nothing
82 return $this;
83 }
84
85 public function getTitle(): string
86 {
87 return '';
88 }
89}
setInformation(Information $information)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...