‪TYPO3CMS  9.5
DummyClassWithGettersAndSetters.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
25  protected ‪$property;
26 
30  protected ‪$anotherProperty;
31 
35  protected ‪$property2;
36 
40  protected ‪$booleanProperty = true;
41 
45  protected ‪$protectedProperty;
46 
50  protected ‪$unexposedProperty = 'unexposed';
51 
55  public ‪$publicProperty;
56 
60  public ‪$publicProperty2 = 42;
61 
65  protected ‪$anotherBooleanProperty = true;
66 
70  public function ‪setProperty(‪$property)
71  {
72  $this->property = ‪$property;
73  }
74 
78  public function ‪getProperty()
79  {
80  return ‪$this->property;
81  }
82 
87  {
88  $this->anotherProperty = ‪$anotherProperty;
89  }
90 
94  public function ‪getAnotherProperty()
95  {
97  }
98 
102  public function ‪getProperty2()
103  {
104  return ‪$this->property2;
105  }
106 
110  public function ‪setProperty2(‪$property2)
111  {
112  $this->property2 = ‪$property2;
113  }
114 
118  protected function ‪getProtectedProperty()
119  {
120  return '42';
121  }
122 
126  protected function ‪setProtectedProperty($value)
127  {
128  $this->protectedProperty = $value;
129  }
130 
134  public function ‪isBooleanProperty()
135  {
137  }
138 
142  protected function ‪getPrivateProperty()
143  {
144  return '21';
145  }
146 
150  public function ‪setWriteOnlyMagicProperty($value)
151  {
152  }
153 
160  {
161  $this->anotherBooleanProperty = ‪$anotherBooleanProperty;
162  }
163 
167  public function ‪hasAnotherBooleanProperty()
168  {
170  }
171 
177  public function ‪hasSomeValue($value = 42)
178  {
179  return true;
180  }
181 }
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getProperty2
‪mixed getProperty2()
Definition: DummyClassWithGettersAndSetters.php:93
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getPrivateProperty
‪string getPrivateProperty()
Definition: DummyClassWithGettersAndSetters.php:133
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getProtectedProperty
‪string getProtectedProperty()
Definition: DummyClassWithGettersAndSetters.php:109
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setAnotherProperty
‪setAnotherProperty($anotherProperty)
Definition: DummyClassWithGettersAndSetters.php:77
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture
Definition: ArrayAccessClass.php:2
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\isBooleanProperty
‪bool isBooleanProperty()
Definition: DummyClassWithGettersAndSetters.php:125
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setProperty
‪setProperty($property)
Definition: DummyClassWithGettersAndSetters.php:61
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setProperty2
‪setProperty2($property2)
Definition: DummyClassWithGettersAndSetters.php:101
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$anotherBooleanProperty
‪bool $anotherBooleanProperty
Definition: DummyClassWithGettersAndSetters.php:56
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\hasSomeValue
‪bool hasSomeValue($value=42)
Definition: DummyClassWithGettersAndSetters.php:168
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setAnotherBooleanProperty
‪setAnotherBooleanProperty($anotherBooleanProperty)
Definition: DummyClassWithGettersAndSetters.php:150
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters
Definition: DummyClassWithGettersAndSetters.php:21
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setWriteOnlyMagicProperty
‪setWriteOnlyMagicProperty($value)
Definition: DummyClassWithGettersAndSetters.php:141
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getAnotherProperty
‪mixed getAnotherProperty()
Definition: DummyClassWithGettersAndSetters.php:85
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setProtectedProperty
‪setProtectedProperty($value)
Definition: DummyClassWithGettersAndSetters.php:117
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$unexposedProperty
‪string $unexposedProperty
Definition: DummyClassWithGettersAndSetters.php:44
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$property2
‪mixed $property2
Definition: DummyClassWithGettersAndSetters.php:32
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$publicProperty
‪mixed $publicProperty
Definition: DummyClassWithGettersAndSetters.php:48
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getProperty
‪mixed getProperty()
Definition: DummyClassWithGettersAndSetters.php:69
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\hasAnotherBooleanProperty
‪bool hasAnotherBooleanProperty()
Definition: DummyClassWithGettersAndSetters.php:158
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$anotherProperty
‪mixed $anotherProperty
Definition: DummyClassWithGettersAndSetters.php:28
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$publicProperty2
‪int $publicProperty2
Definition: DummyClassWithGettersAndSetters.php:52
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$protectedProperty
‪mixed $protectedProperty
Definition: DummyClassWithGettersAndSetters.php:40
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$booleanProperty
‪bool $booleanProperty
Definition: DummyClassWithGettersAndSetters.php:36
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$property
‪mixed $property
Definition: DummyClassWithGettersAndSetters.php:24