Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class DiceGraphic extends Dice |
||
6 | { |
||
7 | /** |
||
8 | * Constant array that contain the graphic representation of a six sided dice. |
||
9 | */ |
||
10 | public const GRAPHIC_REPRESENTATION = [ |
||
11 | '⚀', |
||
12 | '⚁', |
||
13 | '⚂', |
||
14 | '⚃', |
||
15 | '⚄', |
||
16 | '⚅', |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * __construct. |
||
21 | * |
||
22 | * Constructor of the class |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | 6 | public function __construct() |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * getString. |
||
33 | * |
||
34 | * Return the value of the dice as a graphic representation of a six sided dice |
||
35 | */ |
||
36 | 5 | public function getString(): string |
|
43 |