PHP Класс Respect\Validation\Rules\CreditCard

Наследование: extends Respect\Validation\Rules\AbstractRule
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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.

Описание методов

__construct() публичный Метод

public __construct ( string $brand = null )
$brand string Optional credit card brand

validate() публичный Метод

public validate ( $input )

Описание свойств

$brand публичное свойство

public string $brand
Результат string