‪TYPO3CMS  9.5
ClassWithSettersAndConstructor.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 
32  public function ‪__construct(‪$property1)
33  {
34  $this->property1 = ‪$property1;
35  }
36 
37  public function ‪getProperty1()
38  {
39  return ‪$this->property1;
40  }
41 
42  public function ‪getProperty2()
43  {
44  return ‪$this->property2;
45  }
46 
47  public function ‪setProperty2(‪$property2)
48  {
49  $this->property2 = ‪$property2;
50  }
51 }
‪TYPO3\CMS\Extbase\Tests\Fixture
Definition: ClassWithGettersAndSetters.php:2
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor
Definition: ClassWithSettersAndConstructor.php:21
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor\getProperty2
‪getProperty2()
Definition: ClassWithSettersAndConstructor.php:40
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor\__construct
‪__construct($property1)
Definition: ClassWithSettersAndConstructor.php:30
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor\$property2
‪mixed $property2
Definition: ClassWithSettersAndConstructor.php:28
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor\getProperty1
‪getProperty1()
Definition: ClassWithSettersAndConstructor.php:35
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor\setProperty2
‪setProperty2($property2)
Definition: ClassWithSettersAndConstructor.php:45
‪TYPO3\CMS\Extbase\Tests\Fixture\ClassWithSettersAndConstructor\$property1
‪mixed $property1
Definition: ClassWithSettersAndConstructor.php:24