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