libpairtwo/src/Round.php

27 lines
443 B
PHP
Raw Normal View History

<?php
/**
* Created by PhpStorm.
* User: jeroen
* Date: 1/02/19
* Time: 17:16
*/
namespace JeroenED\Libpairtwo;
use JeroenED\Libpairtwo\Models\Round as RoundModel;
class Round extends RoundModel
{
2019-03-20 17:33:09 +01:00
/**
* Adds a game to the round
*
* @param Game $game
*/
public function addGame(Game $game)
{
$newarray = $this->getGames();
$newarray[] = $game;
$this->setGames($newarray);
}
2019-02-11 17:37:30 +01:00
}