120 lines
1.9 KiB
PHP
120 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace HermannTelser\Watten\Domain\Model;
|
|
|
|
use \DateTime;
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
|
|
|
class Events extends AbstractEntity
|
|
{
|
|
/**
|
|
* @var DateTime
|
|
*/
|
|
protected $datum = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $tournaments_id = 0;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $event = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $isactive = 0;
|
|
|
|
|
|
public function __construct(int $datum = 0, int $tournaments_id = 0, string $event = '', int $isactive = 0)
|
|
{
|
|
$this->setDatum($datum);
|
|
$this->setTournamentId($tournaments_id);
|
|
$this->setEvent($event);
|
|
$this->setIsactive($isactive);
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param DateTime $datum
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setDatum(int $datum): void
|
|
{
|
|
$this->datum = $datum;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return DateTime
|
|
*/
|
|
public function getDatum(): int
|
|
{
|
|
return $this->datum;
|
|
}
|
|
|
|
|
|
/**
|
|
*
|
|
* @param int $tournaments_id
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setTournamentId(int $tournaments_id): void
|
|
{
|
|
$this->s1 = $tournaments_id;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getTournamentId(): int
|
|
{
|
|
return $this->tournaments_id;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param String $event
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setEvent(string $event): void
|
|
{
|
|
$this->event = $event;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return String
|
|
*/
|
|
public function getEvent(): string
|
|
{
|
|
return $this->event;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $isactive
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setIsactive(int $isactive): void
|
|
{
|
|
$this->s1 = $isactive;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getIsactive(): int
|
|
{
|
|
return $this->isactive;
|
|
}
|
|
}
|