| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CountryFactory |
||
| 9 | { |
||
| 10 | private CountryRepository $countryRepository; |
||
| 11 | |||
| 12 | private function __construct() |
||
| 13 | { |
||
| 14 | } |
||
| 15 | |||
| 16 | private function __clone() |
||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $id |
||
| 22 | * @return Country |
||
| 23 | */ |
||
| 24 | 3 | public static function generate(string $id): Country |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param CountryRepository $countryRepository |
||
| 38 | */ |
||
| 39 | public function setCountryRepository(CountryRepository $countryRepository): void |
||
| 44 |