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