TYPO3 API  SVNRelease
Fixture_UserDomainClass.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*                                                                        *
00004  * This script belongs to the FLOW3 package "Fluid".                      *
00005  *                                                                        *
00006  * It is free software; you can redistribute it and/or modify it under    *
00007  * the terms of the GNU Lesser General Public License as published by the *
00008  * Free Software Foundation, either version 3 of the License, or (at your *
00009  * option) any later version.                                             *
00010  *                                                                        *
00011  * This script is distributed in the hope that it will be useful, but     *
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
00013  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
00014  * General Public License for more details.                               *
00015  *                                                                        *
00016  * You should have received a copy of the GNU Lesser General Public       *
00017  * License along with the script.                                         *
00018  * If not, see http://www.gnu.org/licenses/lgpl.html                      *
00019  *                                                                        *
00020  * The TYPO3 project - inspiring people to share!                         *
00021  *                                                                        */
00022 
00023 /**
00024  * Example domain class which can be used to test different view helpers, e.g. the "select" view helper.
00025  *
00026  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
00027  */
00028 class Tx_Fluid_ViewHelpers_Fixtures_UserDomainClass {
00029 
00030     protected $id;
00031 
00032     protected $firstName;
00033 
00034     protected $lastName;
00035 
00036     /**
00037      * Constructor.
00038      *
00039      * @param int $id
00040      * @param string $firstName
00041      * @param string $lastName
00042      * @author Sebastian Kurfürst <sebastian@typo3.org>
00043      */
00044     public function __construct($id, $firstName, $lastName) {
00045         $this->id = $id;
00046         $this->firstName = $firstName;
00047         $this->lastName = $lastName;
00048     }
00049 
00050     /**
00051      * Return the ID
00052      *
00053      * @return int ID
00054      * @author Sebastian Kurfürst <sebastian@typo3.org>
00055      */
00056     public function getId() {
00057         return $this->id;
00058     }
00059 
00060     /**
00061      * Return the first name
00062      *
00063      * @return string first name
00064      * @author Sebastian Kurfürst <sebastian@typo3.org>
00065      */
00066     public function getFirstName() {
00067         return $this->firstName;
00068     }
00069 
00070     /**
00071      * Return the last name
00072      *
00073      * @return string lastname
00074      * @author Sebastian Kurfürst <sebastian@typo3.org>
00075      */
00076     public function getLastName() {
00077         return $this->lastName;
00078     }
00079 }
00080 
00081 
00082 ?>