| 1 | <?php |
||
| 10 | class Mac implements IsoCodeInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * MAC address validator. |
||
| 14 | * |
||
| 15 | * Could be separated by hyphens or colons. |
||
| 16 | * Could be both lowercase or uppercase letters. |
||
| 17 | * Mixed upper/lower cases and hyphens/colons are not allowed. |
||
| 18 | * |
||
| 19 | * @link http://en.wikipedia.org/wiki/MAC_address#Notational_conventions |
||
| 20 | * |
||
| 21 | * @param string $mac |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public static function validate($mac) |
||
| 31 | } |
||
| 32 |