Total Complexity | 3 |
Total Lines | 116 |
Duplicated Lines | 0 % |
Coverage | 96% |
Changes | 0 |
1 | <?php |
||
9 | class Subscription extends PhalconSubscription |
||
10 | { |
||
11 | /** |
||
12 | * |
||
13 | * @var integer |
||
14 | */ |
||
15 | public $apps_plans_id = 0; |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @var integer |
||
20 | */ |
||
21 | public $user_id; |
||
22 | |||
23 | /** |
||
24 | * |
||
25 | * @var integer |
||
26 | */ |
||
27 | public $company_id; |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @var integer |
||
32 | */ |
||
33 | public $apps_id; |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | public $name; |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | public $stripe_id; |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | * @var integer |
||
50 | */ |
||
51 | public $quantity; |
||
52 | |||
53 | /** |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | public $trial_ends_at; |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | public $created_at; |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | public $updated_at; |
||
70 | |||
71 | /** |
||
72 | * |
||
73 | * @var integer |
||
74 | */ |
||
75 | public $is_deleted; |
||
76 | |||
77 | /** |
||
78 | * Initialize |
||
79 | * |
||
80 | * @return void |
||
81 | */ |
||
82 | 10 | public function initialize() |
|
105 | ); |
||
106 | 10 | } |
|
107 | |||
108 | /** |
||
109 | * Get the active subscription for this company app |
||
110 | * |
||
111 | * @return void |
||
112 | */ |
||
113 | 4 | public static function getActiveForThisApp() : Subscription |
|
127 |