2014-08-07 03:56:15 +02:00
|
|
|
<?php
|
|
|
|
|
2017-11-22 02:26:15 +01:00
|
|
|
namespace SilverStripe\ExternalLinks\Tasks;
|
|
|
|
|
2014-08-07 03:56:15 +02:00
|
|
|
/**
|
|
|
|
* Provides an interface for checking that a link is valid
|
|
|
|
*/
|
2017-11-23 00:56:44 +01:00
|
|
|
interface LinkChecker
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine the http status code for a given link
|
|
|
|
*
|
|
|
|
* @param string $href URL to check
|
|
|
|
* @return int HTTP status code, or null if not checkable (not a link)
|
|
|
|
*/
|
|
|
|
public function checkLink($href);
|
2014-08-07 03:56:15 +02:00
|
|
|
}
|