-
Home
-
Membership Plugin – Restrict Content
-
3.2.14.1 (latest)
-
Code
-
Classes
- RCP_Discount
Total Complexity |
49 |
Dependencies |
1 |
Dependents |
5 |
Total lines |
499 |
Lines of code |
139 |
Logical lines of code |
73 |
Comment lines |
269 |
Methods |
22 |
Properties |
12 |
Methods 22
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
is_valid() |
A |
57 |
10 |
15 |
remove_from_user() |
S |
55 |
4 |
19 |
__get() |
S |
63 |
3 |
10 |
is_maxed_out() |
S |
64 |
3 |
9 |
is_expired() |
S |
65 |
3 |
8 |
has_membership_level_ids() |
S |
74 |
3 |
4 |
get_membership_level_ids() |
S |
65 |
3 |
9 |
store_for_user() |
S |
63 |
2 |
10 |
get_status() |
S |
79 |
2 |
3 |
__isset() |
S |
69 |
2 |
7 |
decrement_use_count() |
S |
65 |
2 |
9 |
get_unit() |
S |
79 |
2 |
3 |
increment_use_count() |
S |
70 |
1 |
6 |
get_use_count() |
S |
80 |
1 |
3 |
get_expiration() |
S |
82 |
1 |
3 |
get_code() |
S |
80 |
1 |
3 |
is_one_time() |
S |
80 |
1 |
3 |
get_amount() |
S |
82 |
1 |
3 |
get_description() |
S |
80 |
1 |
3 |
get_name() |
S |
82 |
1 |
3 |
get_id() |
S |
80 |
1 |
3 |
get_max_uses() |
S |
80 |
1 |
3 |