1 | <?php |
||
8 | class Url |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $inputUrl; |
||
12 | |||
13 | /** @var array */ |
||
14 | protected $parsedUrl; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $validatedURL; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $ipAddress; |
||
21 | |||
22 | 12 | private static function verifyAndGetDNS($domain): string |
|
31 | |||
32 | 13 | public function __construct(string $url) |
|
53 | |||
54 | 5 | public function getIp(): string |
|
58 | |||
59 | 13 | public function getHostName(): string |
|
63 | |||
64 | public function getValidatedURL(): string |
||
65 | { |
||
66 | return $this->validatedURL; |
||
67 | } |
||
68 | |||
69 | 13 | public function getPort(): string |
|
73 | |||
74 | 8 | public function getTestURL(): string |
|
78 | |||
79 | 13 | public function getValidUrl(): string |
|
87 | } |
||
88 |