mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-23 03:56:10 +01:00
90 lines
1.4 KiB
PHP
90 lines
1.4 KiB
PHP
|
<?php
|
||
|
namespace Wrm\Events\Domain\Model;
|
||
|
|
||
|
|
||
|
/***
|
||
|
*
|
||
|
* This file is part of the "DD Events" Extension for TYPO3 CMS.
|
||
|
*
|
||
|
* For the full copyright and license information, please read the
|
||
|
* LICENSE.txt file that was distributed with this source code.
|
||
|
*
|
||
|
* (c) 2019 Dirk Koritnik <koritnik@werkraum-media.de>
|
||
|
*
|
||
|
***/
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Date
|
||
|
*/
|
||
|
class Date extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @var \DateTime
|
||
|
*/
|
||
|
protected $start = null;
|
||
|
|
||
|
/**
|
||
|
* @var \DateTime
|
||
|
*/
|
||
|
protected $end = '';
|
||
|
|
||
|
/**
|
||
|
* @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;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param string $end
|
||
|
* @return void
|
||
|
*/
|
||
|
public function setEnd($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;
|
||
|
}
|
||
|
|
||
|
}
|