Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class URLCheck implements EnvironmentCheck |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $url; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $testString; |
||
26 | |||
27 | /** |
||
28 | * @param string $url The URL to check, relative to the site (homepage is ''). |
||
29 | * @param string $testString An optional piece of text to search for on the homepage. |
||
30 | */ |
||
31 | public function __construct($url = '', $testString = '') |
||
32 | { |
||
33 | $this->url = $url; |
||
34 | $this->testString = $testString; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | * |
||
40 | * @return array |
||
41 | * @throws HTTPResponse_Exception |
||
42 | */ |
||
43 | public function check() |
||
61 | ]; |
||
62 | } |
||
64 |