1 | <?php |
||
7 | class TotallyLegit implements Dice |
||
8 | { |
||
9 | private $dice; |
||
10 | private $alwaysRoll; |
||
11 | |||
12 | public function __construct(Dice $dice, $alwaysRoll = 6) |
||
13 | { |
||
14 | $this->dice = $dice; |
||
15 | $this->alwaysRoll = (int) $alwaysRoll; |
||
16 | } |
||
17 | public function name() |
||
18 | { |
||
19 | return $this->dice->name(); |
||
20 | } |
||
21 | |||
22 | public function roll() |
||
26 | } |
||
27 |