mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-26 18:36:15 +01:00
tea/Classes/Domain/Model/Product/Tea.php
2018-05-25 16:19:12 +02:00

59 lines
1,021 B
PHP

<?php
declare(strict_types = 1);
namespace OliverKlee\Tea\Domain\Model\Product;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
/**
* This class represents a tea (flavor), e.g., "Earl Grey".
*
* @author Oliver Klee <typo3-coding@oliverklee.de
*/
class Tea extends AbstractEntity
{
/**
* @var string
*/
protected $title = '';
/**
* @var string
*/
protected $description = '';
/**
* @return string
*/
public function getTitle(): string
{
return $this->title;
}
/**
* @param string $title
*
* @return void
*/
public function setTitle(string $title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getDescription(): string
{
return $this->description;
}
/**
* @param string $description
*
* @return void
*/
public function setDescription(string $description)
{
$this->description = $description;
}
}