-
Home
-
YITH WooCommerce Gift Cards
-
2.18.0
-
Code
-
Classes
- YITH_YWGC_Gift_Card
Total Complexity |
75 |
Dependencies |
3 |
Dependents |
8 |
Total lines |
901 |
Lines of code |
296 |
Logical lines of code |
195 |
Comment lines |
420 |
Methods |
33 |
Properties |
22 |
Methods 33
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
__construct() |
A |
40 |
10 |
55 |
get_gift_card_error() |
A |
50 |
9 |
30 |
save() |
S |
45 |
3 |
40 |
get_status_label() |
S |
59 |
4 |
15 |
get_gift_card_message() |
S |
59 |
4 |
15 |
set_enabled_status() |
S |
64 |
4 |
10 |
register_user() |
S |
66 |
3 |
9 |
get_registered_orders() |
S |
65 |
3 |
10 |
get_redemption_history() |
S |
65 |
3 |
10 |
can_be_used() |
S |
73 |
3 |
4 |
register_order() |
S |
64 |
2 |
10 |
set_status() |
S |
65 |
2 |
10 |
is_expired() |
S |
72 |
2 |
6 |
get_formatted_date() |
S |
69 |
2 |
6 |
update_amount() |
S |
71 |
2 |
6 |
update_balance() |
S |
71 |
2 |
6 |
exists() |
S |
81 |
1 |
3 |
is_dismissed() |
S |
80 |
1 |
3 |
set_duplicated_status() |
S |
81 |
1 |
3 |
set_dismissed_status() |
S |
81 |
1 |
3 |
is_registered_user() |
S |
74 |
1 |
4 |
has_sufficient_credit() |
S |
80 |
1 |
3 |
get_code() |
S |
82 |
1 |
3 |
is_pre_printed() |
S |
80 |
1 |
3 |
is_enabled() |
S |
80 |
1 |
3 |
get_balance() |
S |
77 |
1 |
3 |
set_as_pre_printed() |
S |
81 |
1 |
3 |
set_as_code_not_valid() |
S |
76 |
1 |
4 |
set_as_sent() |
S |
75 |
1 |
4 |
has_been_sent() |
S |
82 |
1 |
3 |
is_disabled() |
S |
80 |
1 |
3 |
is_owner() |
S |
82 |
1 |
3 |
is_virtual() |
S |
82 |
1 |
3 |