libpairtwo/src/Pairing.php

74 lines
1.4 KiB
PHP
Raw Normal View History

2019-02-11 16:43:36 +01:00
<?php
2020-08-02 21:51:59 +02:00
2019-02-11 16:43:36 +01:00
/**
* Class Pairing
*
* Class for a pairing of the tournament
*
2020-08-02 21:51:59 +02:00
* @author Jeroen De Meerleer <schaak@jeroened.be>
* @category Main
* @package Libpairtwo
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
2019-02-11 16:43:36 +01:00
*/
namespace JeroenED\Libpairtwo;
use JeroenED\Libpairtwo\Enums\Color;
use JeroenED\Libpairtwo\Enums\Result;
2019-02-11 16:43:36 +01:00
/**
* Class Pairing
*
* Class for a pairing of the tournament
*
2020-08-02 21:51:59 +02:00
* @author Jeroen De Meerleer <schaak@jeroened.be>
* @category Main
* @package Libpairtwo
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
*/
class Pairing
2019-02-11 16:43:36 +01:00
{
2019-11-17 01:20:15 +01:00
/**
2020-11-22 17:13:13 +01:00
* The number of the board where the game was held
2019-11-17 01:20:15 +01:00
*
2020-11-22 17:13:13 +01:00
* @var int
2019-11-17 01:20:15 +01:00
*/
2020-11-22 17:13:13 +01:00
public $Board;
/**
* The color of the player.
* Possible values are Black and White
*
* @var Color
*/
public $Color;
2019-11-17 01:20:15 +01:00
/**
* The opponent of player
*
* @var Player | null
*/
public $Opponent;
2019-11-17 01:20:15 +01:00
/**
2020-11-22 17:13:13 +01:00
* The player of the pairing. Please note this means the pairing was seen from the point of view of this player
2019-11-17 01:20:15 +01:00
*
2020-11-22 17:13:13 +01:00
* @var Player | null
2019-11-17 01:20:15 +01:00
*/
2020-11-22 17:13:13 +01:00
public $Player;
2019-11-17 01:20:15 +01:00
/**
* The result of the Game. Possible values contain Won, Lost, Draw, Forfait, Bye, etc.
2020-08-02 21:51:59 +02:00
*
2019-11-17 01:20:15 +01:00
* @var Result
*/
public $Result;
2019-11-17 01:20:15 +01:00
/**
* The round of the game
*
* @var int
*/
public $Round;
2019-02-11 17:37:30 +01:00
}