mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-09-28 20:29:29 +02:00
1ed9a23a71
An initial (untested) run at a proper upgrade. Progress commit.
19 lines
381 B
PHP
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);
|
|
}
|