SLB_Discount_Wrapper_Discount C

Total Complexity 123
Dependencies 10
Dependents 4
Total lines 634
Lines of code 413
Logical lines of code 244
Comment lines 96
Methods 42
Properties 0

Methods 42

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