[CLEANUP] Adjust code to coding guidelines
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Reflection / Fixture / DummyClassWithGettersAndSetters.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * All rights reserved
8 *
9 * This class is a backport of the corresponding class of TYPO3 Flow.
10 * All credits go to the TYPO3 Flow team.
11 *
12 * This script is part of the TYPO3 project. The TYPO3 project is
13 * free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * The GNU General Public License can be found at
19 * http://www.gnu.org/copyleft/gpl.html.
20 *
21 * This script is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * This copyright notice MUST APPEAR in all copies of the script!
27 ***************************************************************/
28 /**
29 * Fixture class with getters and setters
30 *
31 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
32 */
33 class DummyClassWithGettersAndSetters {
34
35 protected $property;
36
37 protected $anotherProperty;
38
39 protected $property2;
40
41 protected $booleanProperty = TRUE;
42
43 protected $protectedProperty;
44
45 protected $unexposedProperty = 'unexposed';
46
47 public $publicProperty;
48
49 public $publicProperty2 = 42;
50
51 /**
52 * @param mixed $property
53 */
54 public function setProperty($property) {
55 $this->property = $property;
56 }
57
58 /**
59 * @return mixed
60 */
61 public function getProperty() {
62 return $this->property;
63 }
64
65 /**
66 * @param mixed $anotherProperty
67 */
68 public function setAnotherProperty($anotherProperty) {
69 $this->anotherProperty = $anotherProperty;
70 }
71
72 /**
73 * @return mixed
74 */
75 public function getAnotherProperty() {
76 return $this->anotherProperty;
77 }
78
79 /**
80 * @return mixed
81 */
82 public function getProperty2() {
83 return $this->property2;
84 }
85
86 /**
87 * @param mixed $property2
88 */
89 public function setProperty2($property2) {
90 $this->property2 = $property2;
91 }
92
93 /**
94 * @return string
95 */
96 protected function getProtectedProperty() {
97 return '42';
98 }
99
100 /**
101 * @param mixed $value
102 */
103 protected function setProtectedProperty($value) {
104 $this->protectedProperty = $value;
105 }
106
107 /**
108 * @return boolean
109 */
110 public function isBooleanProperty() {
111 return $this->booleanProperty;
112 }
113
114 /**
115 * @return string
116 */
117 protected function getPrivateProperty() {
118 return '21';
119 }
120
121 /**
122 * @param mixed $value
123 */
124 public function setWriteOnlyMagicProperty($value) {
125 }
126 }
127
128 ?>