| 1 | <?php |
||
| 10 | class NumericDiceFactory implements DiceFactory |
||
| 11 | { |
||
| 12 | public function handlesType(string $type) : bool |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $type |
||
| 19 | * @param int $number |
||
| 20 | * @return Dice[] |
||
| 21 | */ |
||
| 22 | public function buildDice(string $type, int $number) : array |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param $size |
||
| 36 | * @return Dice |
||
| 37 | */ |
||
| 38 | private function newDiceOfSize($size) |
||
| 45 | } |
||
| 46 |