mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 07:47:42 +01:00
106 lines
1.7 KiB
PHP
106 lines
1.7 KiB
PHP
|
<?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;
|
||
|
use phpDocumentor\Reflection\Types\Integer;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getOpponent(): Player
|
||
|
{
|
||
|
return $this->Opponent;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param mixed $Opponent
|
||
|
*/
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|