mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-09-28 23:15:00 +02:00
71 lines
987 B
PHP
71 lines
987 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: jeroen
|
|
* Date: 1/02/19
|
|
* Time: 17:13
|
|
*/
|
|
|
|
namespace JeroenED\Libpairtwo\Models;
|
|
|
|
use DateTime;
|
|
|
|
class Round
|
|
{
|
|
private $date;
|
|
private $games;
|
|
|
|
/** @var int */
|
|
private $roundNo;
|
|
|
|
/**
|
|
* @return DateTime
|
|
*
|
|
*/
|
|
public function getDate()
|
|
{
|
|
return $this->date;
|
|
}
|
|
|
|
/**
|
|
* @param DateTime $date
|
|
*/
|
|
public function setDate($date): void
|
|
{
|
|
$this->date = $date;
|
|
}
|
|
|
|
/**
|
|
* @return Game[]
|
|
*/
|
|
public function getGames()
|
|
{
|
|
return $this->games;
|
|
}
|
|
|
|
/**
|
|
* @param Game[] $games
|
|
*/
|
|
public function setGames($games): void
|
|
{
|
|
$this->games = $games;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getRoundNo(): int
|
|
{
|
|
return $this->roundNo;
|
|
}
|
|
|
|
/**
|
|
* @param int $roundNo
|
|
*/
|
|
public function setRoundNo(int $roundNo): void
|
|
{
|
|
$this->roundNo = $roundNo;
|
|
}
|
|
|
|
}
|