| Total Complexity | 11 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class CountryWrapper extends Wrapper |
||
| 6 | { |
||
| 7 | |||
| 8 | private $detected = 0; |
||
| 9 | private $score = 0; |
||
| 10 | |||
| 11 | public function process() |
||
| 12 | { |
||
| 13 | $this->initWrapper($this->setLocalName()); |
||
| 14 | $this->detect(); |
||
| 15 | |||
| 16 | if ($this->detected > 0) { |
||
| 17 | $this->setScore($this->score); |
||
| 18 | $this->setResult(); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | private function setLocalName() |
||
| 26 | } |
||
| 27 | |||
| 28 | private function detect() |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array $data |
||
| 49 | */ |
||
| 50 | private function setRealScore($data = []) |
||
| 66 | } |