171 lines
2.4 KiB
PHP
171 lines
2.4 KiB
PHP
<?php
|
|
|
|
namespace HermannTelser\Watten\Domain\Model;
|
|
|
|
use DateTime;
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
|
|
|
class Ergebnisse extends AbstractEntity
|
|
{
|
|
/**
|
|
* @var DateTime
|
|
*/
|
|
protected $datum = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $s1 = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $s2 = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $v1 = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $v2 = 0;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $bumid = 0;
|
|
|
|
public function __construct(int $datum = 0, int $s1 = 0, int $s2 = 0, int $v1 = 0, int $v2 = 0, int $bumid = 0)
|
|
{
|
|
$this->setDatum($datum);
|
|
$this->setS1($s1);
|
|
$this->setS2($s2);
|
|
$this->setV1($v1);
|
|
$this->setV2($v2);
|
|
$this->setBumid($bumid);
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param DateTime $datum time stamp
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setDatum(int $datum): void
|
|
{
|
|
$this->datum = $datum;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return DateTime
|
|
*/
|
|
public function getDatum(): int
|
|
{
|
|
return $this->datum;
|
|
}
|
|
|
|
|
|
/**
|
|
*
|
|
* @param int $s1
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setS1(int $s1): void
|
|
{
|
|
$this->s1 = $s1;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getS1(): int
|
|
{
|
|
return $this->s1;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $s2
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setS2(int $s2): void
|
|
{
|
|
$this->s2 = $s2;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getS2(): int
|
|
{
|
|
return $this->s2;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $v1
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setV1(int $v1): void
|
|
{
|
|
$this->v1 = $v1;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getV1(): int
|
|
{
|
|
return $this->v1;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $v1
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setV2(int $v2): void
|
|
{
|
|
$this->v2 = $v2;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getV2(): int
|
|
{
|
|
return $this->v2;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $bumid
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setBumid(int $bumid): void
|
|
{
|
|
$this->bumid = $bumid;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return Int
|
|
*/
|
|
public function getBumid(): int
|
|
{
|
|
return $this->bumid;
|
|
}
|
|
}
|