2013-11-01 21:21:03 +01:00
|
|
|
<?php
|
|
|
|
namespace OliverKlee\Tea\Domain\Model;
|
|
|
|
|
2014-12-10 21:18:45 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the TYPO3 CMS project.
|
2013-11-01 21:21:03 +01:00
|
|
|
*
|
2014-12-10 21:18:45 +01:00
|
|
|
* It is free software; you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU General Public License, either version 2
|
|
|
|
* of the License, or any later version.
|
2013-11-01 21:21:03 +01:00
|
|
|
*
|
2014-12-10 21:18:45 +01:00
|
|
|
* For the full copyright and license information, please read the
|
|
|
|
* LICENSE.txt file that was distributed with this source code.
|
2013-11-01 21:21:03 +01:00
|
|
|
*
|
2014-12-10 21:18:45 +01:00
|
|
|
* The TYPO3 project - inspiring people to share!
|
|
|
|
*/
|
2013-11-01 21:21:03 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This model represents an addition for tea like sugar or milk.
|
|
|
|
*
|
|
|
|
* @author Oliver Klee <typo3-coding@oliverklee.de>
|
|
|
|
*/
|
2016-05-07 21:43:25 +02:00
|
|
|
class Addition extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
* @validate NotEmpty
|
|
|
|
*/
|
|
|
|
protected $title = '';
|
2013-11-01 21:21:03 +01:00
|
|
|
|
2016-05-07 21:43:25 +02:00
|
|
|
/**
|
|
|
|
* @return string $title
|
|
|
|
*/
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->title;
|
|
|
|
}
|
2013-11-01 21:21:03 +01:00
|
|
|
|
2016-05-07 21:43:25 +02:00
|
|
|
/**
|
|
|
|
* @param string $title
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function setTitle($title)
|
|
|
|
{
|
|
|
|
$this->title = $title;
|
|
|
|
}
|
|
|
|
}
|