2019-06-01 16:39:58 +02:00
|
|
|
<?php
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* Class Constants
|
|
|
|
*
|
|
|
|
* Static class for constants
|
|
|
|
*
|
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
*/
|
2019-06-01 16:39:58 +02:00
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo;
|
|
|
|
|
|
|
|
use JeroenED\Libpairtwo\Enums\Color;
|
|
|
|
use JeroenED\Libpairtwo\Enums\Result;
|
|
|
|
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* Class Constants
|
|
|
|
*
|
|
|
|
* Static class for constants
|
|
|
|
*
|
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
*/
|
2019-06-01 16:39:58 +02:00
|
|
|
class Constants
|
|
|
|
{
|
|
|
|
const Won = [ Result::won, Result::wonforfait, Result::wonbye, Result::wonadjourned ];
|
2019-06-05 13:25:14 +02:00
|
|
|
const Draw = [ Result::draw, Result::drawadjourned ];
|
2019-06-01 16:39:58 +02:00
|
|
|
const Lost = [ Result::absent, Result::bye, Result::lost, Result::adjourned ];
|
|
|
|
const NotPlayed = [ Result::bye, Result::wonbye, Result::absent ];
|
2019-06-05 13:25:14 +02:00
|
|
|
const Played = [ Result::won, Result::wonforfait, Result::wonbye, Result::wonadjourned, Result::draw, Result::drawadjourned, Result::absent, Result::bye, Result::lost, Result::adjourned ];
|
2019-06-01 16:39:58 +02:00
|
|
|
const Black = [ Color::black ];
|
|
|
|
const White = [ Color::white ];
|
|
|
|
}
|