libpairtwo/src/Models/Pairing.php

112 lines
1.7 KiB
PHP
Raw Normal View History

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;
2019-03-20 17:33:09 +01:00
use JeroenED\Libpairtwo\Enums\Color;
2019-02-11 16:43:36 +01:00
use JeroenED\Libpairtwo\Enums\Result;
2019-03-20 17:33:09 +01:00
use JeroenED\Libpairtwo\Player;
2019-02-11 16:43:36 +01:00
class Pairing
{
2019-03-20 17:33:09 +01:00
/** @var Player */
2019-02-11 16:43:36 +01:00
private $Player;
2019-03-20 17:33:09 +01:00
/** @var Player */
2019-02-11 16:43:36 +01:00
private $Opponent;
2019-03-20 17:33:09 +01:00
/** @var Color */
2019-02-11 16:43:36 +01:00
private $Color;
2019-03-20 17:33:09 +01:00
/** @var Result */
2019-02-11 16:43:36 +01:00
private $Result;
2019-03-20 17:33:09 +01:00
/** @var int */
2019-02-11 16:43:36 +01:00
private $Round;
/**
* @return Player
*/
public function getPlayer()
2019-02-11 16:43:36 +01:00
{
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()
2019-02-11 16:43:36 +01:00
{
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;
}
}