1 | <?php |
||
11 | final class RequestData extends AbstractRequestData |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * The coupon code. |
||
16 | * |
||
17 | * @var string |
||
18 | * |
||
19 | * @JMS\Type("string") |
||
20 | * @JMS\SerializedName("CODE") |
||
21 | */ |
||
22 | protected $code; |
||
23 | |||
24 | /** |
||
25 | * The article number. |
||
26 | * |
||
27 | * @var string |
||
28 | * |
||
29 | * @JMS\Type("string") |
||
30 | * @JMS\SerializedName("ARTICLE_NUMBER") |
||
31 | */ |
||
32 | protected $articleNumber; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @param string $code The code to request. |
||
38 | * @param string $articleNumber The article number. |
||
39 | */ |
||
40 | 6 | public function __construct($code, $articleNumber) |
|
45 | |||
46 | /** |
||
47 | * Get the code. |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getCode() |
||
55 | |||
56 | /** |
||
57 | * Set the code. |
||
58 | * |
||
59 | * @param string $code The code. |
||
60 | * @return RequestData |
||
61 | */ |
||
62 | 6 | public function setCode($code) |
|
68 | |||
69 | /** |
||
70 | * Get the article number. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getArticleNumber() |
||
78 | |||
79 | /** |
||
80 | * Set the article number. |
||
81 | * |
||
82 | * @param string $articleNumber The article number. |
||
83 | * @return RequestData |
||
84 | */ |
||
85 | 6 | public function setArticleNumber($articleNumber) |
|
91 | } |
||
92 |