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 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Drupal\visitors; |
| 6 | |
| 7 | /** |
| 8 | * Interface for visitors social networks service. |
| 9 | */ |
| 10 | interface VisitorsSocialNetworksInterface { |
| 11 | |
| 12 | /** |
| 13 | * Match a hostname to a social network. |
| 14 | * |
| 15 | * @param string $hostname |
| 16 | * The hostname to match. |
| 17 | * |
| 18 | * @return string|null |
| 19 | * The social network label if matched, null otherwise. |
| 20 | */ |
| 21 | public function match(string $hostname): ?string; |
| 22 | |
| 23 | } |