@@ -40,6 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @param string $name |
| 43 | + * @return void |
|
| 43 | 44 | */ |
| 44 | 45 | public function setName($name); |
| 45 | 46 | |
@@ -50,6 +51,7 @@ discard block |
||
| 50 | 51 | |
| 51 | 52 | /** |
| 52 | 53 | * @param string $description |
| 54 | + * @return void |
|
| 53 | 55 | */ |
| 54 | 56 | public function setDescription($description); |
| 55 | 57 | |
@@ -60,6 +62,7 @@ discard block |
||
| 60 | 62 | |
| 61 | 63 | /** |
| 62 | 64 | * @param string $metaKeywords |
| 65 | + * @return void |
|
| 63 | 66 | */ |
| 64 | 67 | public function setMetaKeywords($metaKeywords); |
| 65 | 68 | |
@@ -70,6 +73,7 @@ discard block |
||
| 70 | 73 | |
| 71 | 74 | /** |
| 72 | 75 | * @param string $metaDescription |
| 76 | + * @return void |
|
| 73 | 77 | */ |
| 74 | 78 | public function setMetaDescription($metaDescription); |
| 75 | 79 | |
@@ -85,11 +89,13 @@ discard block |
||
| 85 | 89 | |
| 86 | 90 | /** |
| 87 | 91 | * @param ProductVariantInterface $variant |
| 92 | + * @return void |
|
| 88 | 93 | */ |
| 89 | 94 | public function addVariant(ProductVariantInterface $variant); |
| 90 | 95 | |
| 91 | 96 | /** |
| 92 | 97 | * @param ProductVariantInterface $variant |
| 98 | + * @return void |
|
| 93 | 99 | */ |
| 94 | 100 | public function removeVariant(ProductVariantInterface $variant); |
| 95 | 101 | |
@@ -112,11 +118,13 @@ discard block |
||
| 112 | 118 | |
| 113 | 119 | /** |
| 114 | 120 | * @param ProductOptionInterface $option |
| 121 | + * @return void |
|
| 115 | 122 | */ |
| 116 | 123 | public function addOption(ProductOptionInterface $option); |
| 117 | 124 | |
| 118 | 125 | /** |
| 119 | 126 | * @param ProductOptionInterface $option |
| 127 | + * @return void |
|
| 120 | 128 | */ |
| 121 | 129 | public function removeOption(ProductOptionInterface $option); |
| 122 | 130 | |
@@ -129,6 +137,7 @@ discard block |
||
| 129 | 137 | |
| 130 | 138 | /** |
| 131 | 139 | * @param ProductAssociationInterface $association |
| 140 | + * @return void |
|
| 132 | 141 | */ |
| 133 | 142 | public function addAssociation(ProductAssociationInterface $association); |
| 134 | 143 | |
@@ -139,6 +148,7 @@ discard block |
||
| 139 | 148 | |
| 140 | 149 | /** |
| 141 | 150 | * @param ProductAssociationInterface $association |
| 151 | + * @return void |
|
| 142 | 152 | */ |
| 143 | 153 | public function removeAssociation(ProductAssociationInterface $association); |
| 144 | 154 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | { |
| 132 | 132 | "code": "MONSTER_MUG" |
| 133 | 133 | } |
| 134 | -EOT; |
|
| 134 | +eot; |
|
| 135 | 135 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 136 | 136 | $response = $this->client->getResponse(); |
| 137 | 137 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | -EOT; |
|
| 177 | +eot; |
|
| 178 | 178 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 179 | 179 | $response = $this->client->getResponse(); |
| 180 | 180 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | } |
| 204 | 204 | ] |
| 205 | 205 | } |
| 206 | -EOT; |
|
| 206 | +eot; |
|
| 207 | 207 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 208 | 208 | $response = $this->client->getResponse(); |
| 209 | 209 | |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | "tracked": true, |
| 226 | 226 | "onHand": 5 |
| 227 | 227 | } |
| 228 | -EOT; |
|
| 228 | +eot; |
|
| 229 | 229 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 230 | 230 | $response = $this->client->getResponse(); |
| 231 | 231 | |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | "code": "MONSTER_MUG", |
| 248 | 248 | "tax_category": "TC1" |
| 249 | 249 | } |
| 250 | -EOT; |
|
| 250 | +eot; |
|
| 251 | 251 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 252 | 252 | $response = $this->client->getResponse(); |
| 253 | 253 | |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | "code": "MONSTER_MUG", |
| 270 | 270 | "shipping_category": "SC1" |
| 271 | 271 | } |
| 272 | -EOT; |
|
| 272 | +eot; |
|
| 273 | 273 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 274 | 274 | $response = $this->client->getResponse(); |
| 275 | 275 | |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | "MUG__TYPE": "MUG_TYPE_MEDIUM" |
| 294 | 294 | } |
| 295 | 295 | } |
| 296 | -EOT; |
|
| 296 | +eot; |
|
| 297 | 297 | $this->client->request('POST', sprintf('/api/v1/products/%s/variants/', $product_variants_data['product1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 298 | 298 | $response = $this->client->getResponse(); |
| 299 | 299 | |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | { |
| 347 | 347 | "code": "NEW_MUG_CODE" |
| 348 | 348 | } |
| 349 | -EOT; |
|
| 349 | +eot; |
|
| 350 | 350 | $this->client->request('PUT', sprintf('/api/v1/products/%s/variants/%s', $product_variants_data['product1']->getId(), $product_variants_data['productVariant1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 351 | 351 | $response = $this->client->getResponse(); |
| 352 | 352 | |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | } |
| 374 | 374 | } |
| 375 | 375 | } |
| 376 | -EOT; |
|
| 376 | +eot; |
|
| 377 | 377 | $this->client->request('PATCH', sprintf('/api/v1/products/%s/variants/%s', $product_variants_data['product1']->getId(), $product_variants_data['productVariant1']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 378 | 378 | $response = $this->client->getResponse(); |
| 379 | 379 | |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | { |
| 395 | 395 | "tracked": false |
| 396 | 396 | } |
| 397 | -EOT; |
|
| 397 | +eot; |
|
| 398 | 398 | $this->client->request('PATCH', sprintf('/api/v1/products/%s/variants/%s', $product_variants_data['product2']->getId(), $product_variants_data['productVariant21']->getId()), [], [], static::$authorizedHeaderWithContentType, $data); |
| 399 | 399 | $response = $this->client->getResponse(); |
| 400 | 400 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 29 | 29 | { |
| 30 | - $builder->addEventListener(FormEvents::PRE_SUBMIT , function (FormEvent $event) { |
|
| 30 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 31 | 31 | $data = $event->getData(); |
| 32 | 32 | |
| 33 | 33 | if (!array_key_exists('onHand', $data)) { |