TYPO3 CMS  TYPO3_6-2
DummyClassWithGettersAndSetters.php
Go to the documentation of this file.
1 <?php
3 
22 
23  protected $property;
24 
25  protected $anotherProperty;
26 
27  protected $property2;
28 
29  protected $booleanProperty = TRUE;
30 
31  protected $protectedProperty;
32 
33  protected $unexposedProperty = 'unexposed';
34 
36 
37  public $publicProperty2 = 42;
38 
42  public function setProperty($property) {
43  $this->property = $property;
44  }
45 
49  public function getProperty() {
50  return $this->property;
51  }
52 
57  $this->anotherProperty = $anotherProperty;
58  }
59 
63  public function getAnotherProperty() {
65  }
66 
70  public function getProperty2() {
71  return $this->property2;
72  }
73 
77  public function setProperty2($property2) {
78  $this->property2 = $property2;
79  }
80 
84  protected function getProtectedProperty() {
85  return '42';
86  }
87 
91  protected function setProtectedProperty($value) {
92  $this->protectedProperty = $value;
93  }
94 
98  public function isBooleanProperty() {
100  }
101 
105  protected function getPrivateProperty() {
106  return '21';
107  }
108 
112  public function setWriteOnlyMagicProperty($value) {
113  }
114 }