silverstripe-externallinks/src/Tasks/LinkChecker.php
Dylan Wagstaff 1ed9a23a71 Run the upgrader & linting tools
An initial (untested) run at a proper upgrade. Progress commit.
2017-11-23 12:56:44 +13:00

19 lines
381 B
PHP

<?php
namespace SilverStripe\ExternalLinks\Tasks;
/**
* Provides an interface for checking that a link is valid
*/
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);
}