mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-27 13:06:11 +01:00
59 lines
1,021 B
PHP
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;
|
|
}
|
|
}
|