[TASK] Re-work/simplify copyright header in PHP files - Part 8
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Fixture / ValueObject.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Tests\Fixture;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16 /**
17 * An entity
18 */
19 class ValueObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
20
21 /**
22 * The value object's name
23 *
24 * @var string
25 */
26 protected $name;
27
28 /**
29 * Constructs this value object
30 *
31 * @param string $name Name of this blog
32 */
33 public function __construct($name) {
34 $this->setName($name);
35 }
36
37 /**
38 * Sets this value object's name
39 *
40 * @param string $name The value object's name
41 * @return void
42 */
43 public function setName($name) {
44 $this->name = $name;
45 }
46
47 /**
48 * Returns the value object's name
49 *
50 * @return string The value object's name
51 */
52 public function getName() {
53 return $this->name;
54 }
55 }