‪TYPO3CMS  10.4
DummyClassWithGettersAndSetters.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
22 {
26  protected ‪$property;
27 
31  protected ‪$anotherProperty;
32 
36  protected ‪$property2;
37 
41  protected ‪$booleanProperty = true;
42 
46  protected ‪$protectedProperty;
47 
51  protected ‪$unexposedProperty = 'unexposed';
52 
56  public ‪$publicProperty;
57 
61  public ‪$publicProperty2 = 42;
62 
66  protected ‪$anotherBooleanProperty = true;
67 
71  public function ‪setProperty(‪$property)
72  {
73  $this->property = ‪$property;
74  }
75 
79  public function ‪getProperty()
80  {
81  return ‪$this->property;
82  }
83 
88  {
89  $this->anotherProperty = ‪$anotherProperty;
90  }
91 
95  public function ‪getAnotherProperty()
96  {
98  }
99 
103  public function ‪getProperty2()
104  {
105  return ‪$this->property2;
106  }
107 
111  public function ‪setProperty2(‪$property2)
112  {
113  $this->property2 = ‪$property2;
114  }
115 
119  protected function ‪getProtectedProperty()
120  {
121  return '42';
122  }
123 
127  protected function ‪setProtectedProperty($value)
128  {
129  $this->protectedProperty = $value;
130  }
131 
135  public function ‪isBooleanProperty()
136  {
138  }
139 
143  protected function ‪getPrivateProperty()
144  {
145  return '21';
146  }
147 
151  public function ‪setWriteOnlyMagicProperty($value)
152  {
153  }
154 
161  {
162  $this->anotherBooleanProperty = ‪$anotherBooleanProperty;
163  }
164 
168  public function ‪hasAnotherBooleanProperty()
169  {
171  }
172 
178  public function ‪hasSomeValue($value = 42)
179  {
180  return true;
181  }
182 }
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getProperty2
‪mixed getProperty2()
Definition: DummyClassWithGettersAndSetters.php:94
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getPrivateProperty
‪string getPrivateProperty()
Definition: DummyClassWithGettersAndSetters.php:134
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getProtectedProperty
‪string getProtectedProperty()
Definition: DummyClassWithGettersAndSetters.php:110
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setAnotherProperty
‪setAnotherProperty($anotherProperty)
Definition: DummyClassWithGettersAndSetters.php:78
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture
Definition: ArrayAccessClass.php:16
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\isBooleanProperty
‪bool isBooleanProperty()
Definition: DummyClassWithGettersAndSetters.php:126
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setProperty
‪setProperty($property)
Definition: DummyClassWithGettersAndSetters.php:62
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setProperty2
‪setProperty2($property2)
Definition: DummyClassWithGettersAndSetters.php:102
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$anotherBooleanProperty
‪bool $anotherBooleanProperty
Definition: DummyClassWithGettersAndSetters.php:57
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\hasSomeValue
‪bool hasSomeValue($value=42)
Definition: DummyClassWithGettersAndSetters.php:169
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setAnotherBooleanProperty
‪setAnotherBooleanProperty($anotherBooleanProperty)
Definition: DummyClassWithGettersAndSetters.php:151
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters
Definition: DummyClassWithGettersAndSetters.php:22
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setWriteOnlyMagicProperty
‪setWriteOnlyMagicProperty($value)
Definition: DummyClassWithGettersAndSetters.php:142
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getAnotherProperty
‪mixed getAnotherProperty()
Definition: DummyClassWithGettersAndSetters.php:86
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\setProtectedProperty
‪setProtectedProperty($value)
Definition: DummyClassWithGettersAndSetters.php:118
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$unexposedProperty
‪string $unexposedProperty
Definition: DummyClassWithGettersAndSetters.php:45
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$property2
‪mixed $property2
Definition: DummyClassWithGettersAndSetters.php:33
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$publicProperty
‪mixed $publicProperty
Definition: DummyClassWithGettersAndSetters.php:49
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\getProperty
‪mixed getProperty()
Definition: DummyClassWithGettersAndSetters.php:70
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\hasAnotherBooleanProperty
‪bool hasAnotherBooleanProperty()
Definition: DummyClassWithGettersAndSetters.php:159
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$anotherProperty
‪mixed $anotherProperty
Definition: DummyClassWithGettersAndSetters.php:29
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$publicProperty2
‪int $publicProperty2
Definition: DummyClassWithGettersAndSetters.php:53
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$protectedProperty
‪mixed $protectedProperty
Definition: DummyClassWithGettersAndSetters.php:41
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$booleanProperty
‪bool $booleanProperty
Definition: DummyClassWithGettersAndSetters.php:37
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithGettersAndSetters\$property
‪mixed $property
Definition: DummyClassWithGettersAndSetters.php:25