AWPCP_Payment_Transaction C

Total Complexity 117
Dependencies 1
Dependents 19
Total lines 578
Lines of code 362
Logical lines of code 209
Comment lines 65
Methods 46
Properties 15

Methods 46

Method Rating Maintainability Complexity Lines of code
set_status()
B
44 21 43
query()
A
45 11 40
user_has_enough_credit()
A
53 8 23
verify_ready_to_checkout_conditions()
S
51 7 26
save()
S
53 6 22
remove_item()
S
60 4 13
__construct()
S
52 3 24
get_totals()
S
63 4 10
find_by_id()
S
63 3 10
verify_open_conditions()
S
67 3 7
was_payment_successful()
S
74 3 5
verify_payment_conditions()
S
66 3 8
did_payment_failed()
S
79 3 3
get()
S
71 2 6
verify_payment_completed_conditions()
S
68 2 7
get_item()
S
71 2 6
find_or_create()
S
69 2 7
get_default_payment_status()
S
72 2 6
reset_payment_status()
S
80 1 3
delete()
S
71 1 5
set()
S
80 1 3
get_items()
S
82 1 3
add_item()
S
65 1 9
payment_is_not_verified()
S
80 1 3
remove_all_items()
S
81 1 3
get_total_amount()
S
76 1 4
get_total_credits()
S
75 1 4
payment_is_unknown()
S
80 1 3
payment_is_pending()
S
80 1 3
payment_is_invalid()
S
80 1 3
is_open()
S
80 1 3
create()
S
70 1 5
verify_checkout_conditions()
S
82 1 3
verify_completed_conditions()
S
82 1 3
_set_status()
S
81 1 3
get_status()
S
82 1 3
is_new()
S
80 1 3
is_ready_to_checkout()
S
80 1 3
payment_is_canceled()
S
80 1 3
is_doing_checkout()
S
80 1 3
is_processing_payment()
S
80 1 3
is_payment_completed()
S
80 1 3
payment_is_not_required()
S
80 1 3
payment_is_completed()
S
80 1 3
payment_is_failed()
S
80 1 3
is_completed()
S
80 1 3