Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class WebPageHandler implements Handler |
||
9 | { |
||
10 | protected string $url; |
||
11 | protected string $html; |
||
12 | protected DOMDocument $dom; |
||
13 | |||
14 | public function __construct ( string $url ) |
||
15 | { |
||
16 | $this->url = $url; |
||
17 | $this->html = ""; |
||
18 | $this->dom = new DOMDocument(); |
||
19 | } |
||
20 | |||
21 | public function getUrl () : string |
||
22 | { |
||
23 | return $this->url; |
||
24 | } |
||
25 | |||
26 | public function setUrl ( string $url ) : void |
||
27 | { |
||
28 | $this->url = $url; |
||
29 | } |
||
30 | |||
31 | public function read () : void |
||
56 | |||
57 | } |
||
58 | } |
||
59 | |||
60 | public function getDom () : DOMDocument |
||
63 | } |
||
64 | |||
65 | public function getHtml () : string |
||
68 | } |
||
69 | } |
||
70 |