ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullRevision.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
31 class NullRevision extends BaseRevision implements Revision
32 {
36  public function getVersionNumber(): int
37  {
38  return 0;
39  }
40 
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...