TYPO3 API  SVNRelease
DummyClassWithGettersAndSetters.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  All rights reserved
00006 *
00007 *  This class is a backport of the corresponding class of FLOW3.
00008 *  All credits go to the v5 team.
00009 *
00010 *  This script is part of the TYPO3 project. The TYPO3 project is
00011 *  free software; you can redistribute it and/or modify
00012 *  it under the terms of the GNU General Public License as published by
00013 *  the Free Software Foundation; either version 2 of the License, or
00014 *  (at your option) any later version.
00015 *
00016 *  The GNU General Public License can be found at
00017 *  http://www.gnu.org/copyleft/gpl.html.
00018 *
00019 *  This script is distributed in the hope that it will be useful,
00020 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022 *  GNU General Public License for more details.
00023 *
00024 *  This copyright notice MUST APPEAR in all copies of the script!
00025 ***************************************************************/
00026 
00027 /**
00028  * Fixture class with getters and setters
00029  *
00030  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
00031  */
00032 class Tx_Extbase_Tests_Unit_Reflection_Fixture_DummyClassWithGettersAndSetters {
00033 
00034     protected $property;
00035     protected $anotherProperty;
00036     protected $property2;
00037     protected $booleanProperty = TRUE;
00038 
00039     protected $protectedProperty;
00040 
00041     protected $unexposedProperty;
00042 
00043     public $publicProperty;
00044     public $publicProperty2 = 42;
00045 
00046     public function setProperty($property) {
00047         $this->property = $property;
00048     }
00049 
00050     public function getProperty() {
00051         return $this->property;
00052     }
00053 
00054     public function setAnotherProperty($anotherProperty) {
00055         $this->anotherProperty = $anotherProperty;
00056     }
00057 
00058     public function getAnotherProperty() {
00059         return $this->anotherProperty;
00060     }
00061 
00062     public function getProperty2() {
00063         return $this->property2;
00064     }
00065     public function setProperty2($property2) {
00066         $this->property2 = $property2;
00067     }
00068 
00069     protected function getProtectedProperty() {
00070         return '42';
00071     }
00072 
00073     protected function setProtectedProperty($value) {
00074         $this->protectedProperty = $value;
00075     }
00076 
00077     public function isBooleanProperty() {
00078         return 'method called ' . $this->booleanProperty;
00079     }
00080 
00081     protected function getPrivateProperty() {
00082         return '21';
00083     }
00084 
00085     public function setWriteOnlyMagicProperty($value) {
00086     }
00087 }
00088 
00089 
00090 ?>