Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DiceGraphic extends Dice |
||
11 | { |
||
12 | /** |
||
13 | * Unicode representations of dice faces for values 1 to 6. |
||
14 | * |
||
15 | * @var string[] |
||
16 | */ |
||
17 | /** @var string[] */ |
||
18 | private $representation = [ |
||
19 | '⚀', |
||
20 | '⚁', |
||
21 | '⚂', |
||
22 | '⚃', |
||
23 | '⚄', |
||
24 | '⚅', |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * DiceGraphic constructor. |
||
29 | */ |
||
30 | 2 | public function __construct() |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get the graphical string representation of the current dice value. |
||
37 | * |
||
38 | * @return string Unicode character representing the dice face. |
||
39 | */ |
||
40 | 1 | public function getAsString(): string |
|
45 |