‪TYPO3CMS  ‪main
ClassWithGettersAndSetters.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 
24 {
28  protected ‪$property1;
29 
33  protected ‪$property2;
34 
38  public ‪$property3;
39 
43  public ‪$property4;
44 
48  public function ‪setProperty1($value): void
49  {
50  $this->property1 = $value;
51  }
52 
56  public function ‪setProperty2($value): void
57  {
58  $this->property2 = $value;
59  }
60 
64  protected function ‪getProperty1()
65  {
66  return ‪$this->property1;
67  }
68 
72  public function ‪getProperty2()
73  {
74  return ‪$this->property2;
75  }
76 }
‪TYPO3\CMS\Extbase\Tests\Fixture
Definition: ClassWithGettersAndSetters.php:18
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\setProperty2
‪setProperty2($value)
Definition: ClassWithGettersAndSetters.php:52
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property3
‪mixed $property3
Definition: ClassWithGettersAndSetters.php:35
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property4
‪mixed $property4
Definition: ClassWithGettersAndSetters.php:39
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\getProperty1
‪mixed getProperty1()
Definition: ClassWithGettersAndSetters.php:60
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\setProperty1
‪setProperty1($value)
Definition: ClassWithGettersAndSetters.php:44
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\getProperty2
‪mixed getProperty2()
Definition: ClassWithGettersAndSetters.php:68
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property2
‪mixed $property2
Definition: ClassWithGettersAndSetters.php:31
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property1
‪mixed $property1
Definition: ClassWithGettersAndSetters.php:27
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters
Definition: ClassWithGettersAndSetters.php:24