mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-22 04:11:22 +01:00
74 lines
1.4 KiB
PHP
74 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Class Pairing
|
|
*
|
|
* Class for a pairing of the tournament
|
|
*
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
* @category Main
|
|
* @package Libpairtwo
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
*/
|
|
|
|
namespace JeroenED\Libpairtwo;
|
|
|
|
use JeroenED\Libpairtwo\Enums\Color;
|
|
use JeroenED\Libpairtwo\Enums\Result;
|
|
|
|
/**
|
|
* Class Pairing
|
|
*
|
|
* Class for a pairing of the tournament
|
|
*
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
* @category Main
|
|
* @package Libpairtwo
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
*/
|
|
class Pairing
|
|
{
|
|
/**
|
|
* The number of the board where the game was held
|
|
*
|
|
* @var int
|
|
*/
|
|
public $Board;
|
|
|
|
/**
|
|
* The color of the player.
|
|
* Possible values are Black and White
|
|
*
|
|
* @var Color
|
|
*/
|
|
public $Color;
|
|
|
|
/**
|
|
* The opponent of player
|
|
*
|
|
* @var Player | null
|
|
*/
|
|
public $Opponent;
|
|
|
|
/**
|
|
* The player of the pairing. Please note this means the pairing was seen from the point of view of this player
|
|
*
|
|
* @var Player | null
|
|
*/
|
|
public $Player;
|
|
|
|
/**
|
|
* The result of the Game. Possible values contain Won, Lost, Draw, Forfait, Bye, etc.
|
|
*
|
|
* @var Result
|
|
*/
|
|
public $Result;
|
|
|
|
/**
|
|
* The round of the game
|
|
*
|
|
* @var int
|
|
*/
|
|
public $Round;
|
|
}
|