1 | <?php |
||
10 | trait SubscriptionTrait |
||
11 | { |
||
12 | /** |
||
13 | * The subscription ID. |
||
14 | * |
||
15 | * @var integer |
||
16 | * |
||
17 | * @JMS\Type("integer") |
||
18 | * @JMS\SerializedName("subscription_id") |
||
19 | */ |
||
20 | protected $subscriptionId; |
||
21 | |||
22 | /** |
||
23 | * The external subscription ID. |
||
24 | * |
||
25 | * @var string |
||
26 | * |
||
27 | * @JMS\Type("string") |
||
28 | * @JMS\SerializedName("subscription_ext_uid") |
||
29 | */ |
||
30 | protected $subscriptionExternalId; |
||
31 | |||
32 | /** |
||
33 | * The subscription hash. |
||
34 | * |
||
35 | * @var string |
||
36 | * |
||
37 | * @JMS\Type("string") |
||
38 | * @JMS\SerializedName("hash") |
||
39 | */ |
||
40 | protected $hash; |
||
41 | |||
42 | /** |
||
43 | * The subscription article code. |
||
44 | * |
||
45 | * @var string |
||
46 | * |
||
47 | * @JMS\Type("string") |
||
48 | * @JMS\SerializedName("article_code") |
||
49 | */ |
||
50 | protected $articleCode; |
||
51 | |||
52 | /** |
||
53 | * The subscription quantity. |
||
54 | * |
||
55 | * @var integer |
||
56 | * |
||
57 | * @JMS\Type("integer") |
||
58 | * @JMS\SerializedName("quantity") |
||
59 | */ |
||
60 | protected $quantity; |
||
61 | |||
62 | /** |
||
63 | * Get the subscription ID. |
||
64 | * |
||
65 | * @return integer |
||
66 | */ |
||
67 | public function getSubscriptionId() |
||
71 | |||
72 | /** |
||
73 | * Set the subscription ID. |
||
74 | * |
||
75 | * @param integer $subscriptionId |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setSubscriptionId($subscriptionId) |
||
84 | |||
85 | /** |
||
86 | * Get the subscription external ID. |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getSubscriptionExternalId() |
||
94 | |||
95 | /** |
||
96 | * Set the subscription external ID. |
||
97 | * |
||
98 | * @param string $subscriptionExternalId The subscription external ID. |
||
99 | * @return $this |
||
100 | */ |
||
101 | public function setSubscriptionExternalId($subscriptionExternalId) |
||
107 | |||
108 | /** |
||
109 | * Get the hash. |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getHash() |
||
117 | |||
118 | /** |
||
119 | * Set the hash. |
||
120 | * |
||
121 | * @param string $hash The hash. |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setHash($hash) |
||
130 | |||
131 | /** |
||
132 | * Get the article code. |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getArticleCode() |
||
140 | |||
141 | /** |
||
142 | * Set the article code. |
||
143 | * |
||
144 | * @param string $articleCode The article code. |
||
145 | * @return $this |
||
146 | */ |
||
147 | public function setArticleCode($articleCode) |
||
153 | |||
154 | /** |
||
155 | * Get the quantity. |
||
156 | * |
||
157 | * @return integer |
||
158 | */ |
||
159 | public function getQuantity() |
||
163 | |||
164 | /** |
||
165 | * Set the quantity. |
||
166 | * |
||
167 | * @param integer $quantity The quantity. |
||
168 | * @return $this |
||
169 | */ |
||
170 | public function setQuantity($quantity) |
||
176 | } |
||
177 |