events/Classes/Domain/Model/Date.php

78 lines
1.1 KiB
PHP
Raw Normal View History

<?php
namespace Wrm\Events\Domain\Model;
/**
* Date
*/
class Date extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* @var \DateTime
*/
protected $start = null;
/**
* @var \DateTime
*/
2019-08-14 17:22:01 +02:00
protected $end = null;
/**
* @var \Wrm\Events\Domain\Model\Event
*/
protected $event = null;
/**
* @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
* @return void
*/
2019-10-11 15:12:07 +02:00
public function setEnd(\DateTime $end)
{
$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;
}
}