[FEATURE] Support 'has*' for properties in ObjectAccess
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Reflection / Fixture / DummyClassWithGettersAndSetters.php
index 6385323..2e539c0 100644 (file)
@@ -37,6 +37,8 @@ class DummyClassWithGettersAndSetters {
 
        public $publicProperty2 = 42;
 
 
        public $publicProperty2 = 42;
 
+       protected $anotherBooleanProperty = TRUE;
+
        /**
         * @param mixed $property
         */
        /**
         * @param mixed $property
         */
@@ -113,4 +115,22 @@ class DummyClassWithGettersAndSetters {
        public function setWriteOnlyMagicProperty($value) {
        }
 
        public function setWriteOnlyMagicProperty($value) {
        }
 
+       /**
+        * sets the AnotherBooleanProperty
+        *
+        * @param boolean $anotherBooleanProperty
+        *
+        * @return void
+        */
+       public function setAnotherBooleanProperty($anotherBooleanProperty) {
+               $this->anotherBooleanProperty = $anotherBooleanProperty;
+       }
+
+       /**
+        * @return bool
+        */
+       public function hasAnotherBooleanProperty() {
+               return $this->anotherBooleanProperty;
+       }
+
 }
 }