Total Complexity | 3 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class CardGraphic extends Card |
||
12 | { |
||
13 | /** |
||
14 | * Returns a string representation of the card using a Unicode suit symbol. |
||
15 | * |
||
16 | * @return string The formatted string, e.g. "[Q♥]". |
||
17 | */ |
||
18 | 7 | public function __toString(): string |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Gets the Unicode symbol representing the suit of the card. |
||
32 | * |
||
33 | * @return string one of ♥, ♦, ♣, ♠ |
||
34 | */ |
||
35 | 4 | public function getSymbol(): string |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * Returns a filename-friendly version of the card's name, |
||
49 | * matching the image assets naming convention. |
||
50 | * |
||
51 | * @return string for example: "7h" for 7 of Hearts, "qs" for Queen of Spades |
||
52 | */ |
||
53 | 4 | public function getImageBaseName(): string |
|
75 |