Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function init(): void |
||
13 | { |
||
14 | parent::init(); |
||
15 | $this->setLabel('Country'); |
||
16 | $this->setTransformer(new CountryTransformer()); |
||
17 | $countryRepository = new CountryRepository(); |
||
18 | $countries = $countryRepository->findAllCountries(); |
||
19 | $this->setOption('', ''); |
||
20 | |||
21 | foreach ($countries as $c) { |
||
22 | $this->setOption($c->getIso(), $c->getName()); |
||
23 | } |
||
26 |