‪TYPO3CMS  ‪main
DateTimeImmutableExample.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
23 {
28  public static string ‪$publicStaticValue;
29 
35 
40  private string ‪$privateTransientValue; // @phpstan-ignore-line since it is unused on purpose
41 
45  protected ?\DateTimeImmutable ‪$datetimeImmutableText = null;
46 
50  protected ?\DateTimeImmutable ‪$datetimeImmutableInt = null;
51 
55  protected ?\DateTimeImmutable ‪$datetimeImmutableDatetime = null;
56 
57  public function ‪getDatetimeImmutableText(): ?\DateTimeImmutable
58  {
60  }
61 
62  public function ‪setDatetimeImmutableText(\DateTimeImmutable ‪$datetimeImmutableText): void
63  {
64  $this->datetimeImmutableText = ‪$datetimeImmutableText;
65  }
66 
67  public function ‪getDatetimeImmutableInt(): ?\DateTimeImmutable
68  {
70  }
71 
72  public function ‪setDatetimeImmutableInt(\DateTimeImmutable ‪$datetimeImmutableInt): void
73  {
74  $this->datetimeImmutableInt = ‪$datetimeImmutableInt;
75  }
76 
77  public function ‪getDatetimeImmutableDatetime(): ?\DateTimeImmutable
78  {
80  }
81 
82  public function ‪setDatetimeImmutableDatetime(\DateTimeImmutable ‪$datetimeImmutableDatetime): void
83  {
84  $this->datetimeImmutableDatetime = ‪$datetimeImmutableDatetime;
85  }
86 }
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\$datetimeImmutableInt
‪DateTimeImmutable $datetimeImmutableInt
Definition: DateTimeImmutableExample.php:50
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\getDatetimeImmutableText
‪getDatetimeImmutableText()
Definition: DateTimeImmutableExample.php:57
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\$_publicTransientValue
‪string $_publicTransientValue
Definition: DateTimeImmutableExample.php:34
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\getDatetimeImmutableInt
‪getDatetimeImmutableInt()
Definition: DateTimeImmutableExample.php:67
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\$privateTransientValue
‪string $privateTransientValue
Definition: DateTimeImmutableExample.php:40
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\setDatetimeImmutableInt
‪setDatetimeImmutableInt(\DateTimeImmutable $datetimeImmutableInt)
Definition: DateTimeImmutableExample.php:72
‪TYPO3Tests\BlogExample\Domain\Model
Definition: Administrator.php:18
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\getDatetimeImmutableDatetime
‪getDatetimeImmutableDatetime()
Definition: DateTimeImmutableExample.php:77
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\$datetimeImmutableText
‪DateTimeImmutable $datetimeImmutableText
Definition: DateTimeImmutableExample.php:45
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\setDatetimeImmutableDatetime
‪setDatetimeImmutableDatetime(\DateTimeImmutable $datetimeImmutableDatetime)
Definition: DateTimeImmutableExample.php:82
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\$datetimeImmutableDatetime
‪DateTimeImmutable $datetimeImmutableDatetime
Definition: DateTimeImmutableExample.php:55
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample
Definition: DateTimeImmutableExample.php:23
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\$publicStaticValue
‪static string $publicStaticValue
Definition: DateTimeImmutableExample.php:28
‪TYPO3Tests\BlogExample\Domain\Model\DateTimeImmutableExample\setDatetimeImmutableText
‪setDatetimeImmutableText(\DateTimeImmutable $datetimeImmutableText)
Definition: DateTimeImmutableExample.php:62