‪TYPO3CMS  10.4
ClassWithGettersAndSetters.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 ‪$property1;
27 
31  protected ‪$property2;
32 
36  public ‪$property3;
37 
41  public ‪$property4;
42 
46  public function ‪setProperty1($value)
47  {
48  $this->property1 = $value;
49  }
50 
54  public function ‪setProperty2($value)
55  {
56  $this->property2 = $value;
57  }
58 
62  protected function ‪getProperty1()
63  {
64  return ‪$this->property1;
65  }
66 
70  public function ‪getProperty2()
71  {
72  return ‪$this->property2;
73  }
74 }
‪TYPO3\CMS\Extbase\Tests\Fixture
Definition: ClassWithGettersAndSetters.php:16
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\setProperty2
‪setProperty2($value)
Definition: ClassWithGettersAndSetters.php:50
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property3
‪mixed $property3
Definition: ClassWithGettersAndSetters.php:33
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property4
‪mixed $property4
Definition: ClassWithGettersAndSetters.php:37
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\getProperty1
‪mixed getProperty1()
Definition: ClassWithGettersAndSetters.php:58
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\setProperty1
‪setProperty1($value)
Definition: ClassWithGettersAndSetters.php:42
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\getProperty2
‪mixed getProperty2()
Definition: ClassWithGettersAndSetters.php:66
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property2
‪mixed $property2
Definition: ClassWithGettersAndSetters.php:29
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property1
‪mixed $property1
Definition: ClassWithGettersAndSetters.php:25
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters
Definition: ClassWithGettersAndSetters.php:22