‪TYPO3CMS  ‪main
Example.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 {
24  protected string ‪$firstProperty = '';
25  protected int ‪$secondProperty = 0;
26  protected float ‪$thirdProperty = 0.0;
27  protected bool ‪$fourthProperty = true;
29  protected ?\DateTime ‪$uninitializedDateTimeProperty;
31  protected ?\DateTime ‪$initializedDateTimeProperty = null;
38 
39  public function ‪getFirstProperty(): string
40  {
42  }
43 
44  public function ‪setFirstProperty(string ‪$firstProperty): void
45  {
46  $this->firstProperty = ‪$firstProperty;
47  }
48 
49  public function ‪getSecondProperty(): int
50  {
52  }
53 
54  public function ‪setSecondProperty(int ‪$secondProperty): void
55  {
56  $this->secondProperty = ‪$secondProperty;
57  }
58 
59  public function ‪getThirdProperty(): float
60  {
62  }
63 
64  public function ‪setThirdProperty(float ‪$thirdProperty): void
65  {
66  $this->thirdProperty = ‪$thirdProperty;
67  }
68 
69  public function ‪isFourthProperty(): bool
70  {
72  }
73 
74  public function ‪setFourthProperty(bool ‪$fourthProperty): void
75  {
76  $this->fourthProperty = ‪$fourthProperty;
77  }
78 
79  public function ‪getUninitializedStringProperty(): string
80  {
82  }
83 
85  {
86  $this->uninitializedStringProperty = ‪$uninitializedStringProperty;
87  }
88 
89  public function ‪getUninitializedDateTimeProperty(): ?\DateTime
90  {
92  }
93 
95  {
96  $this->uninitializedDateTimeProperty = ‪$uninitializedDateTimeProperty;
97  }
98 
99  public function ‪getUninitializedMandatoryDateTimeProperty(): \DateTime
100  {
102  }
103 
105  {
106  $this->uninitializedMandatoryDateTimeProperty = ‪$uninitializedMandatoryDateTimeProperty;
107  }
108 
109  public function ‪getInitializedDateTimeProperty(): ?\DateTime
110  {
112  }
113 
115  {
116  $this->initializedDateTimeProperty = ‪$initializedDateTimeProperty;
117  }
118 
120  {
122  }
123 
125  {
126  $this->customDateTime = ‪$customDateTime;
127  }
128 }
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setUninitializedMandatoryDateTimeProperty
‪setUninitializedMandatoryDateTimeProperty(\DateTime $uninitializedMandatoryDateTimeProperty)
Definition: Example.php:104
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getUninitializedStringProperty
‪getUninitializedStringProperty()
Definition: Example.php:79
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$fourthProperty
‪bool $fourthProperty
Definition: Example.php:27
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$uninitializedStringProperty
‪string $uninitializedStringProperty
Definition: Example.php:28
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$uninitializedMandatoryDateTimeProperty
‪DateTime $uninitializedMandatoryDateTimeProperty
Definition: Example.php:30
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$unknownType
‪$unknownType
Definition: Example.php:33
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setThirdProperty
‪setThirdProperty(float $thirdProperty)
Definition: Example.php:64
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setInitializedDateTimeProperty
‪setInitializedDateTimeProperty(?\DateTime $initializedDateTimeProperty)
Definition: Example.php:114
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getThirdProperty
‪getThirdProperty()
Definition: Example.php:59
‪TYPO3Tests\TestDataMapper\Domain\Model\CustomDateTime
Definition: CustomDateTime.php:20
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setUninitializedStringProperty
‪setUninitializedStringProperty(string $uninitializedStringProperty)
Definition: Example.php:84
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setFirstProperty
‪setFirstProperty(string $firstProperty)
Definition: Example.php:44
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$firstProperty
‪string $firstProperty
Definition: Example.php:24
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getInitializedDateTimeProperty
‪getInitializedDateTimeProperty()
Definition: Example.php:109
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setFourthProperty
‪setFourthProperty(bool $fourthProperty)
Definition: Example.php:74
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setUninitializedDateTimeProperty
‪setUninitializedDateTimeProperty(?\DateTime $uninitializedDateTimeProperty)
Definition: Example.php:94
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getUninitializedDateTimeProperty
‪getUninitializedDateTimeProperty()
Definition: Example.php:89
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$initializedDateTimeProperty
‪DateTime $initializedDateTimeProperty
Definition: Example.php:31
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\isFourthProperty
‪isFourthProperty()
Definition: Example.php:69
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getCustomDateTime
‪getCustomDateTime()
Definition: Example.php:119
‪TYPO3Tests\TestDataMapper\Domain\Model\Enum\StringBackedEnum
‪StringBackedEnum
Definition: StringBackedEnum.php:21
‪TYPO3Tests\TestDataMapper\Domain\Model
Definition: CustomDateTime.php:18
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$secondProperty
‪int $secondProperty
Definition: Example.php:25
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$customDateTime
‪CustomDateTime $customDateTime
Definition: Example.php:32
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$nullableStringBackedEnum
‪Enum StringBackedEnum null $nullableStringBackedEnum
Definition: Example.php:35
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getUninitializedMandatoryDateTimeProperty
‪getUninitializedMandatoryDateTimeProperty()
Definition: Example.php:99
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$integerBackedEnum
‪Enum IntegerBackedEnum $integerBackedEnum
Definition: Example.php:36
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setCustomDateTime
‪setCustomDateTime(?CustomDateTime $customDateTime)
Definition: Example.php:124
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getSecondProperty
‪getSecondProperty()
Definition: Example.php:49
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\setSecondProperty
‪setSecondProperty(int $secondProperty)
Definition: Example.php:54
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$thirdProperty
‪float $thirdProperty
Definition: Example.php:26
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$stringBackedEnum
‪Enum StringBackedEnum $stringBackedEnum
Definition: Example.php:34
‪TYPO3Tests\TestDataMapper\Domain\Model\Enum\IntegerBackedEnum
‪IntegerBackedEnum
Definition: IntegerBackedEnum.php:21
‪TYPO3Tests\TestDataMapper\Domain\Model\Example
Definition: Example.php:23
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\getFirstProperty
‪getFirstProperty()
Definition: Example.php:39
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$uninitializedDateTimeProperty
‪DateTime $uninitializedDateTimeProperty
Definition: Example.php:29
‪TYPO3Tests\TestDataMapper\Domain\Model\Example\$nullableIntegerBackedEnum
‪Enum IntegerBackedEnum null $nullableIntegerBackedEnum
Definition: Example.php:37