| 1 | <?php |
||
| 6 | class CurlLinkChecker implements LinkChecker |
||
|
|
|||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Return cache |
||
| 11 | * |
||
| 12 | * @return Zend_Cache_Frontend |
||
| 13 | */ |
||
| 14 | protected function getCache() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Determine the http status code for a given link |
||
| 25 | * |
||
| 26 | * @param string $href URL to check |
||
| 27 | * @return int HTTP status code, or null if not checkable (not a link) |
||
| 28 | */ |
||
| 29 | public function checkLink($href) |
||
| 56 | } |
||
| 57 |
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.