[BUGFIX] Respect DateTimeImmutable in Extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Classes / Domain / Model / DateTimeImmutableExample.php
1 <?php
2 declare(strict_types = 1);
3 namespace ExtbaseTeam\BlogExample\Domain\Model;
4
5 use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
6
7 class DateTimeImmutableExample extends AbstractEntity
8 {
9
10 /**
11 * A datetimeImmutable stored in a text field
12 *
13 * @var \DateTimeImmutable
14 */
15 protected $datetimeImmutableText;
16
17 /**
18 * A datetime stored in an integer field
19 *
20 * @var \DateTimeImmutable
21 */
22 protected $datetimeImmutableInt;
23
24 /**
25 * A datetime stored in a datetime field
26 *
27 * @var \DateTimeImmutable
28 */
29 protected $datetimeImmutableDatetime;
30
31 /**
32 * @return \DateTimeImmutable
33 */
34 public function getDatetimeImmutableText(): \DateTimeImmutable
35 {
36 return $this->datetimeImmutableText;
37 }
38
39 /**
40 * @param \DateTimeImmutable $datetimeImmutableText
41 */
42 public function setDatetimeImmutableText(\DateTimeImmutable $datetimeImmutableText)
43 {
44 $this->datetimeImmutableText = $datetimeImmutableText;
45 }
46
47 /**
48 * @return \DateTimeImmutable
49 */
50 public function getDatetimeImmutableInt(): \DateTimeImmutable
51 {
52 return $this->datetimeImmutableInt;
53 }
54
55 /**
56 * @param \DateTimeImmutable $datetimeImmutableInt
57 */
58 public function setDatetimeImmutableInt(\DateTimeImmutable $datetimeImmutableInt)
59 {
60 $this->datetimeImmutableInt = $datetimeImmutableInt;
61 }
62
63 /**
64 * @return \DateTimeImmutable
65 */
66 public function getDatetimeImmutableDatetime(): \DateTimeImmutable
67 {
68 return $this->datetimeImmutableDatetime;
69 }
70
71 /**
72 * @param \DateTimeImmutable $datetimeImmutableDatetime
73 */
74 public function setDatetimeImmutableDatetime(\DateTimeImmutable $datetimeImmutableDatetime)
75 {
76 $this->datetimeImmutableDatetime = $datetimeImmutableDatetime;
77 }
78 }