SLB_Discount_Wrapper_Discount B

Total Complexity 100
Dependencies 10
Dependents 4
Total lines 567
Lines of code 364
Logical lines of code 217
Comment lines 90
Methods 36
Properties 0

Methods 36

Method Rating Maintainability Complexity Lines of code
validateDiscountRules()
B
39 18 58
applyDiscountToBookingServices()
A
44 8 49
validateDiscount()
S
58 7 13
validateDiscountFull()
S
57 5 19
validateDiscountForBookingServices()
S
58 4 16
validateDiscountForMail()
S
61 4 14
calculateDiscount()
S
60 3 14
getStartsAt()
S
62 3 13
getEndsAt()
S
62 3 13
validateDiscountForServicesIds()
S
62 3 12
getServices()
S
65 3 10
validateDiscountForCustomer()
S
67 3 7
decrementUsagesNumber()
S
64 3 9
getAmountString()
S
63 2 11
getName()
S
71 2 7
getAmount()
S
72 2 5
getDiscountType()
S
73 2 5
getServicesIds()
S
70 2 7
getTotalUsagesNumber()
S
72 2 5
getAmountType()
S
73 2 5
getUsagesNumber()
S
69 2 6
decrementTotalUsagesNumber()
S
74 2 4
incrementUsagesNumber()
S
66 2 8
getUsagesLimit()
S
77 1 4
isUnlimitedUsages()
S
77 1 4
getTotalUsagesLimit()
S
77 1 4
isUnlimitedTotalUsages()
S
77 1 4
isValidDiscountFullForBB()
S
76 1 4
isValidDiscountFull()
S
75 1 4
validateDiscountFullForBB()
S
66 1 8
incrementTotalUsagesNumber()
S
79 1 3
generateCouponCode()
S
75 1 4
__toString()
S
81 1 3
getDiscountRules()
S
73 1 5
getCouponCode()
S
76 1 4
getPostType()
S
82 1 3