AWPCP_Payment_Transaction C

Total Complexity 116
Dependencies 1
Dependents 20
Total lines 593
Lines of code 364
Logical lines of code 211
Comment lines 77
Methods 46
Properties 15

Methods 46

Method Rating Maintainability Complexity Lines of code
set_status()
B
44 21 43
query()
A
43 12 42
user_has_enough_credit()
A
53 8 23
save()
S
53 6 22
verify_ready_to_checkout_conditions()
S
51 5 26
remove_item()
S
60 4 13
get_totals()
S
62 4 11
__construct()
S
52 3 24
verify_open_conditions()
S
67 3 7
verify_payment_conditions()
S
66 3 8
was_payment_successful()
S
74 3 5
find_by_id()
S
63 3 10
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
payment_is_unknown()
S
80 1 3
reset_payment_status()
S
80 1 3
add_item()
S
65 1 9
set()
S
80 1 3
get_items()
S
82 1 3
payment_is_invalid()
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_not_verified()
S
80 1 3
payment_is_failed()
S
80 1 3
payment_is_canceled()
S
80 1 3
is_open()
S
80 1 3
verify_checkout_conditions()
S
82 1 3
verify_completed_conditions()
S
82 1 3
_set_status()
S
81 1 3
create()
S
70 1 5
get_status()
S
82 1 3
is_new()
S
80 1 3
is_ready_to_checkout()
S
80 1 3
delete()
S
75 1 4
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_pending()
S
80 1 3
is_completed()
S
80 1 3