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