2019-05-30 20:54:53 +02:00
|
|
|
<?php
|
2020-08-02 21:51:59 +02:00
|
|
|
|
2019-06-19 19:49:39 +02:00
|
|
|
/**
|
|
|
|
* Class Constants
|
|
|
|
*
|
|
|
|
* Static class for constants
|
|
|
|
*
|
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-06-19 19:49:39 +02:00
|
|
|
*/
|
2019-05-30 20:54:53 +02:00
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo;
|
|
|
|
|
|
|
|
use JeroenED\Libpairtwo\Enums\Color;
|
|
|
|
use JeroenED\Libpairtwo\Enums\Result;
|
|
|
|
|
2019-06-19 19:49:39 +02:00
|
|
|
/**
|
|
|
|
* Class Constants
|
|
|
|
*
|
|
|
|
* Static class for constants
|
|
|
|
*
|
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-06-19 19:49:39 +02:00
|
|
|
*/
|
2019-05-30 20:54:53 +02:00
|
|
|
class Constants
|
|
|
|
{
|
2020-08-02 21:51:59 +02:00
|
|
|
public const WON = [Result::WON, Result::WON_FORFAIT, Result::WON_BYE, Result::WON_ADJOURNED];
|
|
|
|
|
|
|
|
public const DRAW = [Result::DRAW, Result::DRAW_ADJOURNED];
|
|
|
|
|
|
|
|
public const LOST = [Result::ABSENT, Result::BYE, Result::LOST, Result::ADJOURNED];
|
|
|
|
|
|
|
|
public const NOTPLAYED = [Result::BYE, Result::WON_BYE, Result::ABSENT];
|
|
|
|
|
|
|
|
public const PLAYED = [
|
|
|
|
Result::WON,
|
|
|
|
Result::WON_FORFAIT,
|
|
|
|
Result::WON_BYE,
|
|
|
|
Result::WON_ADJOURNED,
|
|
|
|
Result::DRAW,
|
|
|
|
Result::DRAW_ADJOURNED,
|
|
|
|
Result::ABSENT,
|
|
|
|
Result::BYE,
|
|
|
|
Result::LOST,
|
|
|
|
Result::ADJOURNED
|
|
|
|
];
|
|
|
|
|
|
|
|
public const BLACK = [Color::BLACK];
|
|
|
|
|
|
|
|
public const WHITE = [Color::WHITE];
|
2019-05-30 20:54:53 +02:00
|
|
|
}
|