mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
16 lines
312 B
PHP
16 lines
312 B
PHP
<?php
|
|
|
|
/**
|
|
* 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);
|
|
}
|