2019-07-18 13:44:19 +02:00
|
|
|
<?php
|
|
|
|
namespace Wrm\Events\Domain\Model;
|
|
|
|
|
2021-01-07 08:47:15 +01:00
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
2019-07-18 13:44:19 +02:00
|
|
|
/**
|
|
|
|
* Date
|
|
|
|
*/
|
2021-01-07 08:47:15 +01:00
|
|
|
class Date extends AbstractEntity
|
2019-07-18 13:44:19 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \DateTime
|
|
|
|
*/
|
|
|
|
protected $start = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \DateTime
|
|
|
|
*/
|
2019-08-14 17:22:01 +02:00
|
|
|
protected $end = null;
|
2019-07-18 13:44:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \Wrm\Events\Domain\Model\Event
|
|
|
|
*/
|
|
|
|
protected $event = null;
|
|
|
|
|
2020-10-01 08:34:13 +02:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2020-10-01 08:56:44 +02:00
|
|
|
protected $_languageUid;
|
2020-10-01 08:34:13 +02:00
|
|
|
|
2019-07-18 13:44:19 +02:00
|
|
|
/**
|
|
|
|
* @return \DateTime $start
|
|
|
|
*/
|
|
|
|
public function getStart()
|
|
|
|
{
|
|
|
|
return $this->start;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \DateTime $start
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function setStart(\DateTime $start)
|
|
|
|
{
|
|
|
|
$this->start = $start;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \DateTime end
|
|
|
|
*/
|
|
|
|
public function getEnd()
|
|
|
|
{
|
|
|
|
return $this->end;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-10-11 15:12:07 +02:00
|
|
|
* @param \DateTime $end
|
2019-07-18 13:44:19 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
2019-10-11 15:12:07 +02:00
|
|
|
public function setEnd(\DateTime $end)
|
2019-07-18 13:44:19 +02:00
|
|
|
{
|
|
|
|
$this->end = $end;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Event
|
|
|
|
*/
|
|
|
|
public function getEvent(): Event
|
|
|
|
{
|
|
|
|
return $this->event;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Event $event
|
|
|
|
*/
|
|
|
|
public function setEvent(Event $event): self
|
|
|
|
{
|
|
|
|
$this->event = $event;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2020-10-01 08:34:13 +02:00
|
|
|
/**
|
|
|
|
* @param int $languageUid
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function setLanguageUid($languageUid) {
|
2020-10-01 08:56:44 +02:00
|
|
|
$this->_languageUid = $languageUid;
|
2020-10-01 08:34:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getLanguageUid() {
|
2020-10-01 08:56:44 +02:00
|
|
|
return $this->_languageUid;
|
2020-10-01 08:34:13 +02:00
|
|
|
}
|
|
|
|
|
2019-07-18 13:44:19 +02:00
|
|
|
}
|