libpairtwo/src/Models/Game.php

73 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
* Created by PhpStorm.
* User: jeroen
* Date: 1/02/19
* Time: 17:16
*/
namespace JeroenED\Libpairtwo\Models;
use JeroenED\Libpairtwo\Enums\Gameresult;
2019-03-20 17:33:09 +01:00
use JeroenED\Libpairtwo\Pairing;
abstract class Game
{
2019-03-20 12:46:46 +01:00
/** @var Pairing */
private $white;
2019-03-20 12:46:46 +01:00
/** @var Pairing */
private $black;
/** @var GameResult */
private $result;
/**
2019-03-20 12:46:46 +01:00
* @return Pairing
*/
public function getWhite()
{
return $this->white;
}
/**
2019-03-20 12:46:46 +01:00
* @param Pairing $white
*/
2019-03-20 12:46:46 +01:00
public function setWhite($white): void
{
$this->white = $white;
}
/**
2019-03-20 12:46:46 +01:00
* @return Pairing
*/
public function getBlack()
{
return $this->black;
}
/**
2019-03-20 12:46:46 +01:00
* @param Pairing $black
*/
2019-03-20 12:46:46 +01:00
public function setBlack($black): void
{
$this->black = $black;
}
/**
* @return GameResult
*/
public function getResult()
{
return $this->result;
}
/**
* @param GameResult $result
*/
public function setResult(GameResult $result): void
{
$this->result = $result;
}
2019-02-11 17:37:30 +01:00
}