2013-11-01 21:21:03 +01:00
|
|
|
<?php
|
2017-09-08 18:04:28 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2013-11-01 21:21:03 +01:00
|
|
|
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
|
|
|
|
*/
|
2017-09-08 18:04:28 +02:00
|
|
|
public function getTitle(): string
|
2016-05-07 21:43:25 +02:00
|
|
|
{
|
|
|
|
return $this->title;
|
|
|
|
}
|
2013-11-01 21:21:03 +01:00
|
|
|
|
2016-05-07 21:43:25 +02:00
|
|
|
/**
|
|
|
|
* @param string $title
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2017-09-08 18:04:28 +02:00
|
|
|
public function setTitle(string $title)
|
2016-05-07 21:43:25 +02:00
|
|
|
{
|
|
|
|
$this->title = $title;
|
|
|
|
}
|
|
|
|
}
|