CreditCard A

Total Complexity 61
Dependencies 2
Dependents 0
Total lines 692
Lines of code 212
Logical lines of code 83
Comment lines 364
Methods 33
Properties 5

Methods 33

Method Rating Maintainability Complexity Lines of code
getBrand()
A
45 13 45
matchBrandRanges()
S
54 7 21
isChargeable()
S
71 4 6
getExpiryDate()
S
59 3 13
setExpiryMonth()
S
67 3 8
setExpiryYear()
S
63 2 10
isCardCvcValid()
S
77 2 3
isCardholderValid()
S
77 2 3
__construct()
S
72 1 6
setCardNumber()
S
75 1 4
getCardNumber()
S
82 1 3
setCvc()
S
74 1 4
getCvc()
S
82 1 3
getExpiryMonth()
S
82 1 3
getExpiryYear()
S
82 1 3
setExpiryDate()
S
80 1 3
setCardholderName()
S
76 1 4
getCardholderName()
S
82 1 3
isCardNumberValid()
S
100 1 0
isExpired()
S
75 1 4
getCardNumberDigits()
S
100 1 0
formatCardNumber()
S
100 1 0
getMaskedCardNumber()
S
100 1 0
getBrandAlias()
S
100 1 0
getBrandName()
S
100 1 0
isVisa()
S
68 1 7
isMasterCard()
S
66 1 8
isAmericanExpress()
S
67 1 8
isDinersClub()
S
64 1 10
isDiscover()
S
64 1 10
isJcb()
S
68 1 7
getAllBrands()
S
66 1 10
load()
S
79 1 3