| 1 | <?php |
||
| 10 | abstract class Luhn |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param string $luhn |
||
| 14 | * @param int $length |
||
| 15 | * @param bool $unDecorate |
||
| 16 | * @param array $hyphens |
||
| 17 | * |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public static function check($luhn, $length, $unDecorate = true, $hyphens = []) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $luhn |
||
| 46 | * @param array $hyphens |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public static function unDecorate($luhn, $hyphens = []) |
||
| 60 | } |
||
| 61 |