| Total Complexity | 12 |
| Total Lines | 107 |
| Duplicated Lines | 0 % |
| Coverage | 74.07% |
| Changes | 4 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | class Country |
||
| 8 | { |
||
| 9 | private string $id = ''; |
||
| 10 | private string $iso = ''; |
||
| 11 | private string $name = ''; |
||
| 12 | private string $num_code = ''; |
||
| 13 | private string $flag = ''; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | 2 | public function getId(): string |
|
| 19 | { |
||
| 20 | 2 | return $this->id; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $id |
||
| 25 | */ |
||
| 26 | 3 | public function setId(string $id): void |
|
| 27 | { |
||
| 28 | 3 | $this->id = $id; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 2 | public function getIso(): string |
|
| 35 | { |
||
| 36 | 2 | return $this->iso; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $iso |
||
| 41 | */ |
||
| 42 | 3 | public function setIso(string $iso): void |
|
| 43 | { |
||
| 44 | 3 | $this->iso = $iso; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 2 | public function getName(): string |
|
| 51 | { |
||
| 52 | 2 | return $this->name; |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param $name |
||
| 57 | */ |
||
| 58 | 3 | public function setName(string $name): void |
|
| 59 | { |
||
| 60 | 3 | $this->name = $name; |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 2 | public function getNumCode(): string |
|
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $num_code |
||
| 73 | */ |
||
| 74 | 3 | public function setNumCode(string $num_code): void |
|
| 75 | { |
||
| 76 | 3 | $this->num_code = $num_code; |
|
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | 3 | public function getFlag(): string |
|
| 83 | { |
||
| 84 | 3 | return $this->flag; |
|
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param string $flag |
||
| 89 | */ |
||
| 90 | 3 | public function setFlag(string $flag): void |
|
| 91 | { |
||
| 92 | 3 | $this->flag = $flag; |
|
| 93 | } |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return array |
||
| 97 | */ |
||
| 98 | public function toArray(): array |
||
| 105 | ]; |
||
| 106 | } |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @return string |
||
| 110 | */ |
||
| 111 | public function __toString() |
||
| 114 | } |
||
| 115 | } |
||
| 116 |