‪TYPO3CMS  9.5
ClassWithGettersAndSetters.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 ‪$property1;
26 
30  protected ‪$property2;
31 
35  public ‪$property3;
36 
40  public ‪$property4;
41 
45  public function ‪setProperty1($value)
46  {
47  $this->property1 = $value;
48  }
49 
53  public function ‪setProperty2($value)
54  {
55  $this->property2 = $value;
56  }
57 
61  protected function ‪getProperty1()
62  {
63  return ‪$this->property1;
64  }
65 
69  public function ‪getProperty2()
70  {
71  return ‪$this->property2;
72  }
73 }
‪TYPO3\CMS\Extbase\Tests\Fixture
Definition: ClassWithGettersAndSetters.php:2
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\setProperty2
‪setProperty2($value)
Definition: ClassWithGettersAndSetters.php:49
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property3
‪mixed $property3
Definition: ClassWithGettersAndSetters.php:32
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property4
‪mixed $property4
Definition: ClassWithGettersAndSetters.php:36
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\getProperty1
‪mixed getProperty1()
Definition: ClassWithGettersAndSetters.php:57
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\setProperty1
‪setProperty1($value)
Definition: ClassWithGettersAndSetters.php:41
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\getProperty2
‪mixed getProperty2()
Definition: ClassWithGettersAndSetters.php:65
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property2
‪mixed $property2
Definition: ClassWithGettersAndSetters.php:28
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters\$property1
‪mixed $property1
Definition: ClassWithGettersAndSetters.php:24
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters
Definition: ClassWithGettersAndSetters.php:21