| 1 | <?php |
||
| 8 | class DiceFactoryCollection implements DiceFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var DiceFactory[] |
||
| 12 | */ |
||
| 13 | private $factories; |
||
| 14 | |||
| 15 | public function __construct(array $factories) |
||
| 19 | |||
| 20 | public function handlesType(string $type): bool |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $type |
||
| 32 | * @param int $number |
||
| 33 | * @return Dice[] |
||
| 34 | */ |
||
| 35 | public function buildDice(string $type, int $number): array |
||
| 44 | } |
||
| 45 |