| 1 | <?php |
||
| 8 | class CreditCard implements IsoCodeInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Credit Card validator. |
||
| 12 | * |
||
| 13 | * @param string $creditCard |
||
| 14 | * |
||
| 15 | * @author ronan.guilloux |
||
| 16 | * |
||
| 17 | * @link http://www.prometee-creation.com/tutoriels/fonction-de-luhn-en-php.html |
||
| 18 | * |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | public static function validate($creditCard) |
||
| 55 | } |
||
| 56 |
If you suppress an error, we recommend checking for the error condition explicitly: