Total Complexity | 226 |
Dependencies | 4 |
Dependents | 33 |
Total lines | 1,964 |
Lines of code | 717 |
Logical lines of code | 395 |
Comment lines | 968 |
Methods | 62 |
Properties | 40 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
insert_discount() | 39 | 28 | 54 | |
build_meta() | 43 | 25 | 41 | |
is_product_requirements_met() | 40 | 19 | 63 | |
is_used() | 39 | 14 | 63 | |
is_valid() | 54 | 10 | 19 | |
save() | 49 | 8 | 33 | |
setup_discount() | 45 | 7 | 40 | |
is_active() | 57 | 8 | 15 | |
find_by_code() | 54 | 6 | 21 | |
find_by_name() | 54 | 6 | 21 | |
add() | 53 | 5 | 23 | |
__construct() | 57 | 5 | 18 | |
get_status_label() | 59 | 4 | 15 | |
is_expired() | 59 | 4 | 15 | |
decrease_usage() | 59 | 4 | 15 | |
is_started() | 59 | 4 | 14 | |
is_maxed_out() | 63 | 4 | 10 | |
increase_usage() | 60 | 3 | 14 | |
__set() | 60 | 3 | 13 | |
get_discounted_amount() | 61 | 3 | 12 | |
update() | 57 | 2 | 16 | |
update_meta() | 65 | 3 | 8 | |
get_excluded_products() | 69 | 3 | 6 | |
is_min_price_met() | 62 | 3 | 10 | |
get_product_reqs() | 69 | 3 | 6 | |
__get() | 63 | 3 | 10 | |
update_status() | 60 | 2 | 14 | |
__isset() | 68 | 2 | 7 | |
exists() | 72 | 2 | 6 | |
is_single_use() | 78 | 1 | 3 | |
get_is_single_use() | 78 | 1 | 3 | |
get_is_not_global() | 78 | 1 | 3 | |
get_product_condition() | 79 | 1 | 3 | |
get_max_uses() | 78 | 1 | 3 | |
get_min_price() | 78 | 1 | 3 | |
get_amount() | 78 | 1 | 3 | |
get_uses() | 78 | 1 | 3 | |
setup_uses() | 75 | 1 | 4 | |
array_convert() | 80 | 1 | 3 | |
setup_name() | 76 | 1 | 4 | |
setup_code() | 75 | 1 | 4 | |
setup_status() | 75 | 1 | 4 | |
setup_type() | 75 | 1 | 4 | |
setup_amount() | 75 | 1 | 4 | |
setup_product_requirements() | 75 | 1 | 4 | |
setup_excluded_products() | 75 | 1 | 4 | |
setup_start() | 75 | 1 | 4 | |
setup_expiration() | 75 | 1 | 4 | |
setup_max_uses() | 75 | 1 | 4 | |
get_expiration() | 79 | 1 | 3 | |
setup_min_price() | 75 | 1 | 4 | |
setup_is_single_use() | 75 | 1 | 4 | |
setup_is_not_global() | 75 | 1 | 4 | |
setup_product_condition() | 75 | 1 | 4 | |
get_meta() | 74 | 1 | 4 | |
get_ID() | 82 | 1 | 3 | |
get_name() | 82 | 1 | 3 | |
get_code() | 79 | 1 | 3 | |
get_status() | 79 | 1 | 3 | |
get_type() | 79 | 1 | 3 | |
get_start() | 79 | 1 | 3 | |
edit_url() | 77 | 1 | 3 |