libpairtwo/src/Constants.php

19 lines
704 B
PHP
Raw Normal View History

<?php
namespace JeroenED\Libpairtwo;
use JeroenED\Libpairtwo\Enums\Color;
use JeroenED\Libpairtwo\Enums\Result;
class Constants
{
const Won = [ Result::won, Result::wonforfait, Result::wonbye, Result::wonadjourned ];
2019-06-05 13:23:16 +02:00
const Draw = [ Result::draw, Result::drawadjourned ];
const Lost = [ Result::absent, Result::bye, Result::lost, Result::adjourned ];
const NotPlayed = [ Result::bye, Result::wonbye, Result::absent ];
2019-06-05 13:23:16 +02:00
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 ];
}