Total Complexity | 3 |
Total Lines | 140 |
Duplicated Lines | 0 % |
Coverage | 88% |
Changes | 0 |
1 | <?php |
||
22 | class Subscription extends PhalconSubscription |
||
23 | { |
||
24 | /** |
||
25 | * |
||
26 | * @var integer |
||
27 | */ |
||
28 | public $apps_plans_id = 0; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @var integer |
||
33 | */ |
||
34 | public $user_id; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @var integer |
||
39 | */ |
||
40 | public $companies_id; |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @var integer |
||
45 | */ |
||
46 | public $apps_id; |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | * @var string |
||
51 | */ |
||
52 | public $name; |
||
53 | |||
54 | /** |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | public $stripe_id; |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | public $stripe_plan; |
||
65 | |||
66 | /** |
||
67 | * |
||
68 | * @var integer |
||
69 | */ |
||
70 | public $quantity; |
||
71 | |||
72 | /** |
||
73 | * |
||
74 | * @var string |
||
75 | */ |
||
76 | public $trial_ends_at; |
||
77 | |||
78 | /** |
||
79 | * |
||
80 | * @var integer |
||
81 | */ |
||
82 | public $trial_ends_days; |
||
83 | |||
84 | /** |
||
85 | * |
||
86 | * @var integer |
||
87 | */ |
||
88 | public $is_freetrial; |
||
89 | |||
90 | /** |
||
91 | * |
||
92 | * @var integer |
||
93 | */ |
||
94 | public $is_active; |
||
95 | |||
96 | /** |
||
97 | * |
||
98 | * @var string |
||
99 | */ |
||
100 | public $created_at; |
||
101 | |||
102 | /** |
||
103 | * |
||
104 | * @var string |
||
105 | */ |
||
106 | public $updated_at; |
||
107 | |||
108 | /** |
||
109 | * |
||
110 | * @var integer |
||
111 | */ |
||
112 | public $is_deleted; |
||
113 | |||
114 | /** |
||
115 | * Initialize |
||
116 | * |
||
117 | * @return void |
||
118 | */ |
||
119 | 1 | public function initialize() |
|
142 | ); |
||
143 | 1 | } |
|
144 | |||
145 | /** |
||
146 | * Get the active subscription for this company app |
||
147 | * |
||
148 | * @return void |
||
149 | */ |
||
150 | 1 | public static function getActiveForThisApp() : Subscription |
|
164 |