Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Drupal\visitors; |
| 4 | |
| 5 | /** |
| 6 | * Interface for visitors spam. |
| 7 | */ |
| 8 | interface VisitorsSpamInterface { |
| 9 | |
| 10 | /** |
| 11 | * Match the URL to a spam. |
| 12 | * |
| 13 | * @param string $host |
| 14 | * The host to match. |
| 15 | * |
| 16 | * @return bool |
| 17 | * TRUE if the host matches a spam site, FALSE otherwise. |
| 18 | */ |
| 19 | public function match(string $host): bool; |
| 20 | |
| 21 | } |