| 1 | <?php |
||
| 5 | final class RollType |
||
| 6 | { |
||
| 7 | const EMPTY = '-'; |
||
| 8 | const SPARE = '/'; |
||
| 9 | const STRIKE = 'X'; |
||
| 10 | |||
| 11 | private $type; |
||
| 12 | |||
| 13 | 38 | private function __construct($a_type) |
|
| 17 | |||
| 18 | 38 | public static function fromMark($a_mark) : self |
|
| 32 | |||
| 33 | 35 | public function isEmpty() : bool |
|
| 37 | |||
| 38 | 35 | public function isDefault() : bool |
|
| 42 | |||
| 43 | 35 | public function isSpare() : bool |
|
| 47 | |||
| 48 | 35 | public function isStrike() : bool |
|
| 52 | } |
||
| 53 |