2019-02-11 16:43:36 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: jeroen
|
|
|
|
* Date: 11/02/19
|
|
|
|
* Time: 14:48
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo\Models;
|
|
|
|
|
|
|
|
use JeroenED\LibPairtwo\Enums\Color;
|
|
|
|
use JeroenED\Libpairtwo\Enums\Result;
|
|
|
|
use JeroenED\LibPairtwo\Player;
|
|
|
|
|
|
|
|
class Pairing
|
|
|
|
{
|
|
|
|
private $Player;
|
|
|
|
private $Opponent;
|
|
|
|
private $Color;
|
|
|
|
private $Result;
|
|
|
|
private $Round;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Player
|
|
|
|
*/
|
|
|
|
public function getPlayer(): Player
|
|
|
|
{
|
|
|
|
return $this->Player;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Player $Player
|
|
|
|
*/
|
|
|
|
public function setPlayer(Player $Player): void
|
|
|
|
{
|
|
|
|
$this->Player = $Player;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return Player
|
2019-02-11 16:43:36 +01:00
|
|
|
*/
|
|
|
|
public function getOpponent(): Player
|
|
|
|
{
|
|
|
|
return $this->Opponent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param Player $Opponent
|
2019-02-11 16:43:36 +01:00
|
|
|
*/
|
|
|
|
public function setOpponent(Player $Opponent): void
|
|
|
|
{
|
|
|
|
$this->Opponent = $Opponent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Color
|
|
|
|
*/
|
|
|
|
public function getColor(): Color
|
|
|
|
{
|
|
|
|
return $this->Color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Color $Color
|
|
|
|
*/
|
|
|
|
public function setColor(Color $Color): void
|
|
|
|
{
|
|
|
|
$this->Color = $Color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Result
|
|
|
|
*/
|
|
|
|
public function getResult(): Result
|
|
|
|
{
|
|
|
|
return $this->Result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Result $Result
|
|
|
|
*/
|
|
|
|
public function setResult(Result $Result): void
|
|
|
|
{
|
|
|
|
$this->Result = $Result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getRound(): int
|
|
|
|
{
|
|
|
|
return $this->Round;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $Round
|
|
|
|
*/
|
|
|
|
public function setRound(int $Round): void
|
|
|
|
{
|
|
|
|
$this->Round = $Round;
|
|
|
|
}
|
|
|
|
}
|