libpairtwo/src/Models/Round.php

74 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/**
* Created by PhpStorm.
* User: jeroen
* Date: 1/02/19
* Time: 17:13
*/
namespace JeroenED\Libpairtwo\Models;
2019-02-11 17:54:50 +01:00
use DateTime;
class Round
{
2019-03-20 17:33:09 +01:00
/** @var DateTime */
private $date;
2019-03-20 17:33:09 +01:00
/** @var Game[] */
private $games = [];
/** @var int */
private $roundNo;
/**
2019-02-11 17:54:50 +01:00
* @return DateTime
*
*/
public function getDate()
{
return $this->date;
}
/**
2019-02-11 17:54:50 +01:00
* @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;
}
}