Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace Drupal\visitors; |
4 | |
5 | use Drupal\Component\Render\MarkupInterface; |
6 | |
7 | /** |
8 | * Visitors Location Interface. |
9 | */ |
10 | interface VisitorsLocationInterface { |
11 | |
12 | /** |
13 | * Get the country label. |
14 | * |
15 | * @param string $country_code |
16 | * The country code. |
17 | */ |
18 | public function getCountryLabel($country_code): MarkupInterface; |
19 | |
20 | /** |
21 | * Get the continent code. |
22 | * |
23 | * @param string $country_code |
24 | * The country code. |
25 | */ |
26 | public function getContinent($country_code): string; |
27 | |
28 | /** |
29 | * Get the continent label. |
30 | * |
31 | * @param string $continent_code |
32 | * The continent code. |
33 | */ |
34 | public function getContinentLabel($continent_code): MarkupInterface; |
35 | |
36 | /** |
37 | * Check if the country code is valid. |
38 | * |
39 | * @param string $country_code |
40 | * The country code. |
41 | * |
42 | * @return bool |
43 | * Return true if the country code is valid. |
44 | */ |
45 | public function isValidCountryCode($country_code): bool; |
46 | |
47 | } |