* added some fixtures for the unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Fixtures / TX_EXTMVC_Tests_Fixtures_Entity.php
1 <?php
2 declare(ENCODING = 'utf-8');
3
4 /* *
5 * This script is part of the TYPO3 project - inspiring people to share! *
6 * *
7 * TYPO3 is free software; you can redistribute it and/or modify it under *
8 * the terms of the GNU General Public License version 2 as published by *
9 * the Free Software Foundation. *
10 * *
11 * This script is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
13 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
14 * Public License for more details. *
15 * */
16
17 require_once(t3lib_extMgm::extPath('extmvc') . 'Classes/DomainObject/TX_EXTMVC_DomainObject_Entity.php');
18
19 /**
20 * An entity
21 *
22 * @version $Id:$
23 * @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
24 * @entity
25 */
26 class TX_EXTMVC_Tests_Fixtures_Entity extends TX_EXTMVC_DomainObject_Entity {
27
28 /**
29 * The entity's name
30 *
31 * @var string
32 */
33 protected $name;
34
35
36 /**
37 * Constructs this entity
38 *
39 * @param string $name Name of this blog
40 * @return void
41 */
42 public function __construct($name) {
43 $this->setName($name);
44 }
45
46 /**
47 * Sets this entity's name
48 *
49 * @param string $name The entity's name
50 * @return void
51 * @author Jochen Rau <jochen.rau@typoplanet.de>
52 */
53 public function setName($name) {
54 $this->name = $name;
55 }
56
57 /**
58 * Returns the entity's name
59 *
60 * @return string The entity's name
61 * @author Jochen Rau <jochen.rau@typoplanet.de>
62 */
63 public function getName() {
64 return $this->name;
65 }
66
67 // /**
68 // * Mock method
69 // *
70 // * @return void
71 // * @author Jochen Rau <jochen.rau@typoplanet.de>
72 // */
73 // public function _memorizeCleanState() {
74 // }
75
76 }
77 ?>