1 | <?php |
||
16 | class ShippingMethodMapping |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Id |
||
22 | * @ORM\GeneratedValue |
||
23 | * @ORM\Column(type="integer") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * |
||
30 | * @Assert\NotBlank() |
||
31 | * |
||
32 | * @ORM\Column(type="string", unique=true) |
||
33 | */ |
||
34 | protected $source; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | * |
||
39 | * @Assert\NotBlank() |
||
40 | * |
||
41 | * @ORM\Column(type="string") |
||
42 | */ |
||
43 | protected $productCode; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | * |
||
48 | * @ORM\Column(type="array", nullable=true) |
||
49 | */ |
||
50 | protected $serviceCodes; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * |
||
55 | * @ORM\Column(type="string", nullable=true) |
||
56 | */ |
||
57 | protected $returnProductCode; |
||
58 | |||
59 | /** |
||
60 | * @var array |
||
61 | * |
||
62 | * @ORM\Column(type="array", nullable=true) |
||
63 | */ |
||
64 | protected $returnServiceCodes; |
||
65 | |||
66 | /** |
||
67 | * @return int |
||
68 | */ |
||
69 | public function getId(): ?int |
||
73 | |||
74 | /** |
||
75 | * @param int $id |
||
76 | * |
||
77 | * @return ShippingMethodMapping |
||
78 | */ |
||
79 | public function setId(int $id): self |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getSource(): ?string |
||
93 | |||
94 | /** |
||
95 | * @param string $source |
||
96 | * |
||
97 | * @return ShippingMethodMapping |
||
98 | */ |
||
99 | public function setSource(string $source): self |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | public function getProductCode(): ?string |
||
113 | |||
114 | /** |
||
115 | * @param string $productCode |
||
116 | * |
||
117 | * @return ShippingMethodMapping |
||
118 | */ |
||
119 | public function setProductCode(string $productCode): self |
||
125 | |||
126 | /** |
||
127 | * @return array |
||
128 | */ |
||
129 | public function getServiceCodes(): ?array |
||
133 | |||
134 | /** |
||
135 | * @param array $serviceCodes |
||
136 | * |
||
137 | * @return ShippingMethodMapping |
||
138 | */ |
||
139 | public function setServiceCodes(array $serviceCodes): self |
||
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | public function getReturnProductCode(): ?string |
||
153 | |||
154 | /** |
||
155 | * @param string $returnProductCode |
||
156 | * |
||
157 | * @return ShippingMethodMapping |
||
158 | */ |
||
159 | public function setReturnProductCode(string $returnProductCode): self |
||
165 | |||
166 | /** |
||
167 | * @return array |
||
168 | */ |
||
169 | public function getReturnServiceCodes(): ?array |
||
173 | |||
174 | /** |
||
175 | * @param array $returnServiceCodes |
||
176 | * |
||
177 | * @return ShippingMethodMapping |
||
178 | */ |
||
179 | public function setReturnServiceCodes(array $returnServiceCodes): self |
||
185 | } |
||
186 |