2 /***************************************************************
5 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
26 * A abstract Value Object. A Value Object is an object that describes some characteristic
27 * or attribute (e.g. a color) but carries no concept of identity.
30 * @subpackage DomainObject
33 abstract class Tx_Extbase_DomainObject_AbstractValueObject
extends Tx_Extbase_DomainObject_AbstractDomainObject
{
36 * Returns the value of the Value Object. Must be overwritten by a concrete value object.
40 public function getValue() {
41 return $this->__toString();
45 * Clone method. Sets the _isClone property.
49 public function __clone() {
50 $this->isClone
= TRUE;