Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class CreditCard extends \Faker\Provider\Payment implements \Validate\Contracts\Validate |
||
6 | { |
||
7 | |||
8 | public static function toDatabase($creditCardNumber) |
||
9 | { |
||
10 | return strtoupper(preg_replace('/[^0-9]/', '', $creditCardNumber)); |
||
11 | } |
||
12 | |||
13 | public static function toUser($creditCardNumber) |
||
14 | { |
||
15 | return strtoupper(preg_replace('/[^0-9]/', '', $creditCardNumber)); |
||
16 | } |
||
17 | |||
18 | public static function validate($creditCardNumber) |
||
21 | } |
||
22 | |||
23 | public static function mounth($year) |
||
24 | { |
||
25 | return Date::validateMonth($year); |
||
26 | } |
||
27 | |||
28 | public static function year($year) |
||
31 | } |
||
32 | |||
33 | public static function isSame(string $to, string $from) |
||
39 |