@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface PasswordUpdaterInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function updatePassword(CredentialsHolderInterface $user): void; |
| 21 | 24 | } |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | use Sylius\Component\Channel\Model\ChannelsAwareInterface; |
| 18 | 18 | use Sylius\Component\Product\Model\ProductInterface as BaseProductInterface; |
| 19 | 19 | use Sylius\Component\Resource\Model\TranslationInterface; |
| 20 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 21 | 20 | use Sylius\Component\Review\Model\ReviewInterface; |
| 21 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 22 | 22 | |
| 23 | 23 | interface ProductInterface extends |
| 24 | 24 | BaseProductInterface, |
@@ -42,6 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @throws \InvalidArgumentException |
| 45 | + * @return void |
|
| 45 | 46 | */ |
| 46 | 47 | public function setVariantSelectionMethod(?string $variantSelectionMethod): void; |
| 47 | 48 | |
@@ -49,12 +50,24 @@ discard block |
||
| 49 | 50 | |
| 50 | 51 | public function getVariantSelectionMethodLabel(): string; |
| 51 | 52 | |
| 53 | + /** |
|
| 54 | + * @return string |
|
| 55 | + */ |
|
| 52 | 56 | public function getShortDescription(): ?string; |
| 53 | 57 | |
| 58 | + /** |
|
| 59 | + * @return void |
|
| 60 | + */ |
|
| 54 | 61 | public function setShortDescription(?string $shortDescription): void; |
| 55 | 62 | |
| 63 | + /** |
|
| 64 | + * @return \Sylius\Component\Taxonomy\Model\TaxonInterface |
|
| 65 | + */ |
|
| 56 | 66 | public function getMainTaxon(): ?TaxonInterface; |
| 57 | 67 | |
| 68 | + /** |
|
| 69 | + * @return void |
|
| 70 | + */ |
|
| 58 | 71 | public function setMainTaxon(?TaxonInterface $mainTaxon): void; |
| 59 | 72 | |
| 60 | 73 | /** |
@@ -63,6 +76,7 @@ discard block |
||
| 63 | 76 | public function getAcceptedReviews(): Collection; |
| 64 | 77 | |
| 65 | 78 | /** |
| 79 | + * @param string $locale |
|
| 66 | 80 | * @return ProductTranslationInterface |
| 67 | 81 | */ |
| 68 | 82 | public function getTranslation(?string $locale = null): TranslationInterface; |
@@ -146,6 +146,7 @@ |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * @Given the store (also )allows shipping with :name |
| 149 | + * @param string $name |
|
| 149 | 150 | */ |
| 150 | 151 | public function theStoreAllowsShippingMethodWithName($name) |
| 151 | 152 | { |
@@ -127,6 +127,7 @@ discard block |
||
| 127 | 127 | * @Given the store has a tax category :name with a code :code |
| 128 | 128 | * @Given the store has a tax category :name |
| 129 | 129 | * @Given the store has a tax category :name also |
| 130 | + * @param string $name |
|
| 130 | 131 | */ |
| 131 | 132 | public function theStoreHasTaxCategoryWithCode($name, $code = null) |
| 132 | 133 | { |
@@ -213,7 +214,7 @@ discard block |
||
| 213 | 214 | /** |
| 214 | 215 | * @param string $taxRateAmount |
| 215 | 216 | * |
| 216 | - * @return string |
|
| 217 | + * @return integer |
|
| 217 | 218 | */ |
| 218 | 219 | private function getAmountFromString($taxRateAmount) |
| 219 | 220 | { |
@@ -1446,7 +1446,7 @@ |
||
| 1446 | 1446 | ], |
| 1447 | 1447 | ]; |
| 1448 | 1448 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 1449 | - ->willReturn($deleteRoute); |
|
| 1449 | + ->willReturn($deleteRoute); |
|
| 1450 | 1450 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 1451 | 1451 | |
| 1452 | 1452 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | <<<EOT |
| 41 | 41 | foo: bar |
| 42 | 42 | only: string |
| 43 | -EOT; |
|
| 43 | +eot; |
|
| 44 | 44 | |
| 45 | 45 | $this |
| 46 | 46 | ->shouldThrow(InvalidConfigurationException::class) |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $configuration = |
| 55 | 55 | <<<EOT |
| 56 | 56 | alias: sylius.foo |
| 57 | -EOT; |
|
| 57 | +eot; |
|
| 58 | 58 | |
| 59 | 59 | $this |
| 60 | 60 | ->shouldThrow(\InvalidArgumentException::class) |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $configuration = |
| 85 | 85 | <<<EOT |
| 86 | 86 | alias: sylius.product |
| 87 | -EOT; |
|
| 87 | +eot; |
|
| 88 | 88 | |
| 89 | 89 | $showDefaults = [ |
| 90 | 90 | '_controller' => 'sylius.controller.product:showAction', |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $configuration = |
| 190 | 190 | <<<EOT |
| 191 | 191 | alias: sylius.product_option |
| 192 | -EOT; |
|
| 192 | +eot; |
|
| 193 | 193 | |
| 194 | 194 | $showDefaults = [ |
| 195 | 195 | '_controller' => 'sylius.controller.product_option:showAction', |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | criteria: |
| 299 | 299 | code: \$code |
| 300 | 300 | filterable: true |
| 301 | -EOT; |
|
| 301 | +eot; |
|
| 302 | 302 | |
| 303 | 303 | $showDefaults = [ |
| 304 | 304 | '_controller' => 'sylius.controller.product_option:showAction', |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | <<<EOT |
| 429 | 429 | alias: sylius.product |
| 430 | 430 | path: super-duper-products |
| 431 | -EOT; |
|
| 431 | +eot; |
|
| 432 | 432 | |
| 433 | 433 | $showDefaults = [ |
| 434 | 434 | '_controller' => 'sylius.controller.product:showAction', |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | <<<EOT |
| 535 | 535 | alias: sylius.product |
| 536 | 536 | form: sylius_product_custom |
| 537 | -EOT; |
|
| 537 | +eot; |
|
| 538 | 538 | |
| 539 | 539 | $showDefaults = [ |
| 540 | 540 | '_controller' => 'sylius.controller.product:showAction', |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | <<<EOT |
| 643 | 643 | alias: sylius.product |
| 644 | 644 | section: admin |
| 645 | -EOT; |
|
| 645 | +eot; |
|
| 646 | 646 | |
| 647 | 647 | $showDefaults = [ |
| 648 | 648 | '_controller' => 'sylius.controller.product:showAction', |
@@ -754,7 +754,7 @@ discard block |
||
| 754 | 754 | <<<EOT |
| 755 | 755 | alias: sylius.product |
| 756 | 756 | templates: "@SyliusAdmin/Product" |
| 757 | -EOT; |
|
| 757 | +eot; |
|
| 758 | 758 | |
| 759 | 759 | $showDefaults = [ |
| 760 | 760 | '_controller' => 'sylius.controller.product:showAction', |
@@ -864,7 +864,7 @@ discard block |
||
| 864 | 864 | <<<EOT |
| 865 | 865 | alias: sylius.product |
| 866 | 866 | templates: admin/product |
| 867 | -EOT; |
|
| 867 | +eot; |
|
| 868 | 868 | |
| 869 | 869 | $showDefaults = [ |
| 870 | 870 | '_controller' => 'sylius.controller.product:showAction', |
@@ -971,7 +971,7 @@ discard block |
||
| 971 | 971 | <<<EOT |
| 972 | 972 | alias: sylius.product |
| 973 | 973 | except: ['show', 'delete', 'bulkDelete'] |
| 974 | -EOT; |
|
| 974 | +eot; |
|
| 975 | 975 | |
| 976 | 976 | $indexDefaults = [ |
| 977 | 977 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -1032,7 +1032,7 @@ discard block |
||
| 1032 | 1032 | <<<EOT |
| 1033 | 1033 | alias: sylius.product |
| 1034 | 1034 | only: ['create', 'index'] |
| 1035 | -EOT; |
|
| 1035 | +eot; |
|
| 1036 | 1036 | |
| 1037 | 1037 | $indexDefaults = [ |
| 1038 | 1038 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -1068,7 +1068,7 @@ discard block |
||
| 1068 | 1068 | alias: sylius.product |
| 1069 | 1069 | except: ['show', 'delete'] |
| 1070 | 1070 | only: ['create'] |
| 1071 | -EOT; |
|
| 1071 | +eot; |
|
| 1072 | 1072 | |
| 1073 | 1073 | $this |
| 1074 | 1074 | ->shouldThrow(\InvalidArgumentException::class) |
@@ -1099,7 +1099,7 @@ discard block |
||
| 1099 | 1099 | <<<EOT |
| 1100 | 1100 | alias: sylius.product |
| 1101 | 1101 | redirect: update |
| 1102 | -EOT; |
|
| 1102 | +eot; |
|
| 1103 | 1103 | |
| 1104 | 1104 | $showDefaults = [ |
| 1105 | 1105 | '_controller' => 'sylius.controller.product:showAction', |
@@ -1205,7 +1205,7 @@ discard block |
||
| 1205 | 1205 | $configuration = |
| 1206 | 1206 | <<<EOT |
| 1207 | 1207 | alias: sylius.product |
| 1208 | -EOT; |
|
| 1208 | +eot; |
|
| 1209 | 1209 | |
| 1210 | 1210 | $showDefaults = [ |
| 1211 | 1211 | '_controller' => 'sylius.controller.product:showAction', |
@@ -1296,7 +1296,7 @@ discard block |
||
| 1296 | 1296 | alias: sylius.product |
| 1297 | 1297 | only: ['create', 'index'] |
| 1298 | 1298 | grid: sylius_admin_product |
| 1299 | -EOT; |
|
| 1299 | +eot; |
|
| 1300 | 1300 | |
| 1301 | 1301 | $indexDefaults = [ |
| 1302 | 1302 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -1356,7 +1356,7 @@ discard block |
||
| 1356 | 1356 | bar: foo |
| 1357 | 1357 | update: |
| 1358 | 1358 | abc: xyz |
| 1359 | -EOT; |
|
| 1359 | +eot; |
|
| 1360 | 1360 | |
| 1361 | 1361 | $showDefaults = [ |
| 1362 | 1362 | '_controller' => 'sylius.controller.product:showAction', |
@@ -1482,7 +1482,7 @@ discard block |
||
| 1482 | 1482 | <<<EOT |
| 1483 | 1483 | alias: sylius.product |
| 1484 | 1484 | permission: true |
| 1485 | -EOT; |
|
| 1485 | +eot; |
|
| 1486 | 1486 | |
| 1487 | 1487 | $showDefaults = [ |
| 1488 | 1488 | '_controller' => 'sylius.controller.product:showAction', |
@@ -104,6 +104,9 @@ |
||
| 104 | 104 | return $webDirectory; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $webDirectory |
|
| 109 | + */ |
|
| 107 | 110 | private function assertFileContent($lines, $webDirectory): void |
| 108 | 111 | { |
| 109 | 112 | foreach ($lines as $line) { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | "email": "[email protected]" |
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | -EOT; |
|
| 131 | +eot; |
|
| 132 | 132 | |
| 133 | 133 | $this->client->request('POST', $this->getReviewListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 134 | 134 | $response = $this->client->getResponse(); |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | "rating": "1", |
| 220 | 220 | "comment": "NEW_REVIEW_COMMENT" |
| 221 | 221 | } |
| 222 | -EOT; |
|
| 222 | +eot; |
|
| 223 | 223 | $this->client->request('PUT', $this->getReviewUrl($product, $productReview), [], [], static::$authorizedHeaderWithContentType, $data); |
| 224 | 224 | $response = $this->client->getResponse(); |
| 225 | 225 | |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | { |
| 247 | 247 | "comment": "A_NEW_REVIEW_COMMENT" |
| 248 | 248 | } |
| 249 | -EOT; |
|
| 249 | +eot; |
|
| 250 | 250 | |
| 251 | 251 | $this->client->request('PATCH', $this->getReviewUrl($product, $productReview), [], [], static::$authorizedHeaderWithContentType, $data); |
| 252 | 252 | $response = $this->client->getResponse(); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | "defaultLocale": "en_US", |
| 130 | 130 | "enabled": true |
| 131 | 131 | } |
| 132 | -EOT; |
|
| 132 | +eot; |
|
| 133 | 133 | |
| 134 | 134 | $this->client->request('POST', '/api/v1/channels/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 135 | 135 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | "skippingPaymentStepAllowed": true, |
| 169 | 169 | "accountVerificationRequired": false |
| 170 | 170 | } |
| 171 | -EOT; |
|
| 171 | +eot; |
|
| 172 | 172 | |
| 173 | 173 | $this->client->request('POST', '/api/v1/channels/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 174 | 174 | |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | "hostname": "localhost", |
| 226 | 226 | "taxCalculationStrategy": "order_items_based" |
| 227 | 227 | } |
| 228 | -EOT; |
|
| 228 | +eot; |
|
| 229 | 229 | |
| 230 | 230 | $this->client->request('PUT', $this->getChannelUrl($channel), [], [], static::$authorizedHeaderWithContentType, $data); |
| 231 | 231 | |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | "color": "black", |
| 285 | 285 | "enabled": false |
| 286 | 286 | } |
| 287 | -EOT; |
|
| 287 | +eot; |
|
| 288 | 288 | |
| 289 | 289 | $this->client->request('PATCH', $this->getChannelUrl($channel), [], [], static::$authorizedHeaderWithContentType, $data); |
| 290 | 290 | |
@@ -25,6 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @param string $name |
| 27 | 27 | * @param string $languageCode |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function nameItIn($name, $languageCode); |
| 30 | 31 | |
@@ -36,11 +37,13 @@ discard block |
||
| 36 | 37 | /** |
| 37 | 38 | * @param string $code |
| 38 | 39 | * @param string $value |
| 40 | + * @return void |
|
| 39 | 41 | */ |
| 40 | 42 | public function addOptionValue($code, $value); |
| 41 | 43 | |
| 42 | 44 | /** |
| 43 | 45 | * @param string $optionValue |
| 46 | + * @return void |
|
| 44 | 47 | */ |
| 45 | 48 | public function removeOptionValue($optionValue); |
| 46 | 49 | } |