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 = []) |
||
47 | |||
48 | /** |
||
49 | * @param string $luhn |
||
50 | * @param array $hyphens |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public static function unDecorate($luhn, $hyphens = []) |
||
64 | } |
||
65 |