Свойство | Тип | Описание | |
---|---|---|---|
$brand | string |
Метод | Описание | |
---|---|---|
__construct ( string $brand = null ) | ||
validate ( $input ) |
Метод | Описание | |
---|---|---|
verifyBrand ( string $input ) : boolean | Returns whether the input matches the defined credit card brand or not. | |
verifyMod10 ( string $input ) : boolean | Returns whether the input matches the Luhn algorithm or not. |
public __construct ( string $brand = null ) | ||
$brand | string | Optional credit card brand |