‪TYPO3CMS  11.5
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 
47  protected ‪$datetimeImmutableText;
48 
54  protected ‪$datetimeImmutableInt;
55 
62 
66  public function ‪getDatetimeImmutableText(): \DateTimeImmutable
67  {
69  }
70 
74  public function ‪setDatetimeImmutableText(\DateTimeImmutable ‪$datetimeImmutableText): void
75  {
76  $this->datetimeImmutableText = ‪$datetimeImmutableText;
77  }
78 
82  public function ‪getDatetimeImmutableInt(): \DateTimeImmutable
83  {
85  }
86 
90  public function ‪setDatetimeImmutableInt(\DateTimeImmutable ‪$datetimeImmutableInt): void
91  {
92  $this->datetimeImmutableInt = ‪$datetimeImmutableInt;
93  }
94 
98  public function ‪getDatetimeImmutableDatetime(): \DateTimeImmutable
99  {
101  }
102 
106  public function ‪setDatetimeImmutableDatetime(\DateTimeImmutable ‪$datetimeImmutableDatetime): void
107  {
108  $this->datetimeImmutableDatetime = ‪$datetimeImmutableDatetime;
109  }
110 }
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\getDatetimeImmutableDatetime
‪DateTimeImmutable getDatetimeImmutableDatetime()
Definition: DateTimeImmutableExample.php:95
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\getDatetimeImmutableText
‪DateTimeImmutable getDatetimeImmutableText()
Definition: DateTimeImmutableExample.php:63
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\setDatetimeImmutableText
‪setDatetimeImmutableText(\DateTimeImmutable $datetimeImmutableText)
Definition: DateTimeImmutableExample.php:71
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\setDatetimeImmutableInt
‪setDatetimeImmutableInt(\DateTimeImmutable $datetimeImmutableInt)
Definition: DateTimeImmutableExample.php:87
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\$datetimeImmutableText
‪DateTimeImmutable $datetimeImmutableText
Definition: DateTimeImmutableExample.php:46
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\$_publicTransientValue
‪string $_publicTransientValue
Definition: DateTimeImmutableExample.php:34
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\$datetimeImmutableInt
‪DateTimeImmutable $datetimeImmutableInt
Definition: DateTimeImmutableExample.php:52
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\$datetimeImmutableDatetime
‪DateTimeImmutable $datetimeImmutableDatetime
Definition: DateTimeImmutableExample.php:58
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\setDatetimeImmutableDatetime
‪setDatetimeImmutableDatetime(\DateTimeImmutable $datetimeImmutableDatetime)
Definition: DateTimeImmutableExample.php:103
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\$privateTransientValue
‪string $privateTransientValue
Definition: DateTimeImmutableExample.php:40
‪ExtbaseTeam\BlogExample\Domain\Model
Definition: Administrator.php:18
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\getDatetimeImmutableInt
‪DateTimeImmutable getDatetimeImmutableInt()
Definition: DateTimeImmutableExample.php:79
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample
Definition: DateTimeImmutableExample.php:23
‪ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample\$publicStaticValue
‪static string $publicStaticValue
Definition: DateTimeImmutableExample.php:28