1 | <?php |
||
16 | class SubscriptionData |
||
17 | { |
||
18 | /** |
||
19 | * Subscription Class. |
||
20 | * |
||
21 | * @var Subscription |
||
22 | */ |
||
23 | public $subscription; |
||
24 | |||
25 | /** |
||
26 | * User id. |
||
27 | * |
||
28 | * @var int |
||
29 | */ |
||
30 | public $userId; |
||
31 | |||
32 | /** |
||
33 | * Subscription id. |
||
34 | * |
||
35 | * @var int |
||
36 | */ |
||
37 | public $subscriptionId; |
||
38 | |||
39 | /** |
||
40 | * Publication Id. |
||
41 | * |
||
42 | * @var int |
||
43 | */ |
||
44 | public $publicationId; |
||
45 | |||
46 | /** |
||
47 | * To pay value. |
||
48 | * |
||
49 | * @var decimal |
||
50 | */ |
||
51 | public $toPay; |
||
52 | |||
53 | /** |
||
54 | * Subscription start date. |
||
55 | * |
||
56 | * @var \DateTime |
||
57 | */ |
||
58 | public $startDate; |
||
59 | |||
60 | /** |
||
61 | * How long subscription should be valid. |
||
62 | * |
||
63 | * @var int |
||
64 | */ |
||
65 | public $days; |
||
66 | |||
67 | /** |
||
68 | * Subscription duration. |
||
69 | * |
||
70 | * @var array |
||
71 | */ |
||
72 | public $duration; |
||
73 | |||
74 | /** |
||
75 | * Subscription discount. |
||
76 | * |
||
77 | * @var array |
||
78 | */ |
||
79 | public $discount; |
||
80 | |||
81 | /** |
||
82 | * How long subscription will be valid. |
||
83 | * |
||
84 | * @var int |
||
85 | */ |
||
86 | public $paidDays; |
||
87 | |||
88 | /** |
||
89 | * Currency. |
||
90 | * |
||
91 | * @var string |
||
92 | */ |
||
93 | public $currency; |
||
94 | |||
95 | /** |
||
96 | * Subscription status. |
||
97 | * |
||
98 | * @var bool |
||
99 | */ |
||
100 | public $active; |
||
101 | |||
102 | /** |
||
103 | * Status to hide it globally. |
||
104 | * |
||
105 | * @var bool |
||
106 | */ |
||
107 | public $is_active; |
||
108 | |||
109 | public $mainSubscriptionId; |
||
110 | |||
111 | /** |
||
112 | * Subscription type. |
||
113 | * 'T' for Trial subscription, 'P' for paid subscription or 'PN' for paid now subscriptions. |
||
114 | * |
||
115 | * @var string |
||
116 | */ |
||
117 | public $type = 'P'; |
||
118 | |||
119 | public function __construct(array $data, UserSubscription $subscription = null) |
||
137 | } |
||
138 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..