1990. Class

1990.1. Zend\Validator\CreditCard

1990.1.1. Methods

1990.1.1.1. __construct

__construct()

Constructor

Parameters:string|array|Traversable – OPTIONAL Type of CCI to allow

1990.1.1.2. getType

getType()

Returns a list of accepted CCIs

Return type:array

1990.1.1.3. setType

setType()

Sets CCIs which are accepted by validation

Parameters:string|array – Type to allow for validation
Return type:CreditCard Provides a fluid interface

1990.1.1.4. addType

addType()

Adds a CCI to be accepted by validation

Parameters:string|array – Type to allow for validation
Return type:CreditCard Provides a fluid interface

1990.1.1.5. getService

getService()

Returns the actual set service

Return type:callable

1990.1.1.6. setService

setService()

Sets a new callback for service validation

Parameters:callable
Return type:CreditCard
Throws :ExceptionInvalidArgumentException on invalid service callback

1990.1.1.7. isValid

isValid()

Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)

Parameters:string
Return type:bool

1990.1.2. Constants

1990.1.2.1. ALL

Detected CCI list

1990.1.2.2. AMERICAN_EXPRESS

1990.1.2.3. UNIONPAY

1990.1.2.4. DINERS_CLUB

1990.1.2.5. DINERS_CLUB_US

1990.1.2.6. DISCOVER

1990.1.2.7. JCB

1990.1.2.8. LASER

1990.1.2.9. MAESTRO

1990.1.2.10. MASTERCARD

1990.1.2.11. SOLO

1990.1.2.12. VISA

1990.1.2.13. CHECKSUM

1990.1.2.14. CONTENT

1990.1.2.15. INVALID

1990.1.2.16. LENGTH

1990.1.2.17. PREFIX

1990.1.2.18. SERVICE

1990.1.2.19. SERVICEFAILURE