1<?php
2
3/*
4 * This file is part of the TYPO3 CMS project.
5 *
6 * It is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License, either version 2
8 * of the License, or any later version.
9 *
10 * For the full copyright and license information, please read the
11 * LICENSE.txt file that was distributed with this source code.
12 *
13 * The TYPO3 project - inspiring people to share!
14 */
15
16namespace TYPO3\CMS\Extbase\DomainObject;
17
18/**
19 * An abstract Value Object. A Value Object is an object that describes some characteristic
20 * or attribute (e.g. a color) but carries no concept of identity.
21 * @internal only to be used within Extbase, not part of TYPO3 Core API.
22 */
23abstract class AbstractValueObject extends AbstractDomainObject
24{
25    /**
26     * Returns the value of the Value Object. Must be overwritten by a concrete value object.
27     *
28     * @return string
29     */
30    public function getValue()
31    {
32        return $this->__toString();
33    }
34}
35