‪TYPO3CMS  ‪main
DateExample.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 {
27  protected ?\DateTime ‪$datetimeText = null;
28 
32  protected ?\DateTime ‪$datetimeInt = null;
33 
37  protected ?\DateTime ‪$datetimeDatetime = null;
38 
39  public function ‪getDatetimeText(): ?\DateTime
40  {
42  }
43 
44  public function ‪setDatetimeText(\DateTime ‪$datetimeText): void
45  {
46  $this->datetimeText = ‪$datetimeText;
47  }
48 
49  public function ‪getDatetimeInt(): ?\DateTime
50  {
51  return ‪$this->datetimeInt;
52  }
53 
54  public function ‪setDatetimeInt(\DateTime ‪$datetimeInt): void
55  {
56  $this->datetimeInt = ‪$datetimeInt;
57  }
58 
59  public function ‪getDatetimeDatetime(): ?\DateTime
60  {
62  }
63 
64  public function ‪setDatetimeDatetime(\DateTime ‪$datetimeDatetime): void
65  {
66  $this->datetimeDatetime = ‪$datetimeDatetime;
67  }
68 }
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\setDatetimeText
‪setDatetimeText(\DateTime $datetimeText)
Definition: DateExample.php:44
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\setDatetimeInt
‪setDatetimeInt(\DateTime $datetimeInt)
Definition: DateExample.php:54
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\getDatetimeInt
‪getDatetimeInt()
Definition: DateExample.php:49
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\$datetimeText
‪DateTime $datetimeText
Definition: DateExample.php:27
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\$datetimeDatetime
‪DateTime $datetimeDatetime
Definition: DateExample.php:37
‪TYPO3Tests\BlogExample\Domain\Model
Definition: Administrator.php:18
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\$datetimeInt
‪DateTime $datetimeInt
Definition: DateExample.php:32
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\setDatetimeDatetime
‪setDatetimeDatetime(\DateTime $datetimeDatetime)
Definition: DateExample.php:64
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\getDatetimeText
‪getDatetimeText()
Definition: DateExample.php:39
‪TYPO3Tests\BlogExample\Domain\Model\DateExample
Definition: DateExample.php:23
‪TYPO3Tests\BlogExample\Domain\Model\DateExample\getDatetimeDatetime
‪getDatetimeDatetime()
Definition: DateExample.php:59