Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class WebPageSource implements Source |
||
13 | { |
||
14 | protected string $url; |
||
15 | |||
16 | protected WebPageHandler $handler; |
||
17 | |||
18 | public function __construct ( string $url ) |
||
19 | { |
||
20 | $this->url = $url; |
||
21 | $this->handler = new WebPageHandler( $url ); |
||
22 | } |
||
23 | |||
24 | public function getUrl () : string |
||
25 | { |
||
26 | return $this->url; |
||
27 | } |
||
28 | |||
29 | public function setUrl ( string $url ) : void |
||
30 | { |
||
31 | $this->url = $url; |
||
32 | } |
||
33 | |||
34 | public function getHandler () : Handler |
||
35 | { |
||
36 | return $this->handler; |
||
37 | } |
||
38 | |||
39 | public function setHandler ( Handler $handler ) : void |
||
42 | } |
||
43 | } |
||
44 |