1 | <?php |
||
11 | class Host implements DirectiveInterface |
||
12 | { |
||
13 | use UrlToolbox; |
||
14 | |||
15 | /** |
||
16 | * Directive |
||
17 | */ |
||
18 | const DIRECTIVE = 'Host'; |
||
19 | |||
20 | /** |
||
21 | * Host array |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $array = []; |
||
25 | |||
26 | /** |
||
27 | * Host constructor. |
||
28 | */ |
||
29 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * Add |
||
35 | * |
||
36 | * @param string $line |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function add($line) |
||
64 | |||
65 | /** |
||
66 | * Check |
||
67 | * |
||
68 | * @param string $url |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function check($url) |
||
93 | |||
94 | /** |
||
95 | * Export |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function export() |
||
103 | } |
||
104 |