\app\framework\Component\Validation\ValidatorsCreditCardNumber

Summary

Methods
Properties
Constants
getName()
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
luhn()
No private properties found
N/A

Methods

getName()

getName() : string

Get validator name, eg: email

Returns

string

validate()

validate(mixed  $value, array  $params = array(), boolean|true  $throw = false) : boolean|string

Validate given value, using optional parameters and either throw an exception or return a boolean

Parameters

mixed $value
array $params
boolean|true $throw

Returns

boolean|string

luhn()

luhn(  $number) 

Parameters

$number