2019-05-30 20:54:53 +02:00
|
|
|
<?php
|
2019-06-19 19:49:39 +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-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
|
|
|
|
*
|
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
*/
|
2019-05-30 20:54:53 +02:00
|
|
|
class Constants
|
|
|
|
{
|
2019-09-28 20:31:38 +02:00
|
|
|
const Won = [ Result::Won, Result::WonForfait, Result::WonBye, Result::WonAdjourned ];
|
|
|
|
const Draw = [ Result::Draw, Result::DrawAdjourned ];
|
|
|
|
const Lost = [ Result::Absent, Result::Bye, Result::Lost, Result::Adjourned ];
|
|
|
|
const NotPlayed = [ Result::Bye, Result::WonBye, Result::Absent ];
|
|
|
|
const Played = [ Result::Won, Result::WonForfait, Result::WonBye, Result::WonAdjourned, Result::Draw, Result::DrawAdjourned, Result::Absent, Result::Bye, Result::Lost, Result::Adjourned ];
|
|
|
|
const Black = [ Color::Black ];
|
|
|
|
const White = [ Color::White ];
|
2019-05-30 20:54:53 +02:00
|
|
|
}
|