Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 48 | public function __construct(string $number, string $type, string $operator, array $location = null) |
|
26 | { |
||
27 | 48 | $this->number = $number; |
|
28 | 48 | $this->type = $type; |
|
29 | 48 | $this->operator = $operator; |
|
30 | |||
31 | 48 | if ($location !== null) { |
|
32 | 21 | $this->province = $location['province']; |
|
33 | 21 | $this->district = $location['district']; |
|
34 | 21 | $this->area = $location['area']; |
|
35 | } |
||
81 |