Total Complexity | 3 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class IpUmbrella |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var array $ipobjekt array med info om ett ipnummer |
||
10 | */ |
||
11 | |||
12 | public $ipobject = array( |
||
13 | "number" => "", |
||
14 | "valid" => false, |
||
15 | "type" => "invalid", |
||
16 | "domainname" => "none", |
||
17 | "latitude" => 0, |
||
18 | "longitude" => 0, |
||
19 | "country" => "none", |
||
20 | "city" => "none", |
||
21 | ); |
||
22 | |||
23 | protected $ipValidate; |
||
24 | protected $ipType; |
||
25 | protected $ipDomainname; |
||
26 | protected $ipCheckCoordinates; |
||
27 | |||
28 | 2 | public function __construct($di) |
|
29 | { |
||
30 | 2 | $this->di = $di; |
|
|
|||
31 | 2 | $this->ipValidate = new IpValidate($this->di); |
|
32 | 2 | $this->ipType = new IpType($this->di); |
|
33 | 2 | $this->ipDomainname = new IpDomainname($this->di); |
|
34 | 2 | $this->ipCheckCoordinates = new IpCheckCoordinates($this->di); |
|
35 | 2 | } |
|
36 | |||
37 | /** |
||
38 | * Check ip-type sdf saf sdf safd fsda |
||
39 | * |
||
40 | * @return array |
||
41 | */ |
||
42 | 2 | public function input(string $ipnumber) |
|
57 | } |
||
58 | } |
||
59 |