| 1 | <?php |
||
| 8 | class URLCheck implements EnvironmentCheck |
||
|
|
|||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $url; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $testString; |
||
| 19 | |||
| 20 | /* |
||
| 21 | * @param string $url The URL to check, relative to the site (homepage is ''). |
||
| 22 | * @param string $testString An optional piece of text to search for on the homepage. |
||
| 23 | */ |
||
| 24 | public function __construct($url = '', $testString = '') |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | * |
||
| 35 | * @throws SS_HTTPResponse_Exception |
||
| 36 | */ |
||
| 37 | public function check() |
||
| 58 | } |
||
| 59 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.