@@ -29,7 +29,7 @@ |
||
29 | 29 | * Initializes the object |
30 | 30 | * |
31 | 31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
32 | - * @param array $mapping Associative list of field position in CSV as key and domain item key as value |
|
32 | + * @param string[] $mapping Associative list of field position in CSV as key and domain item key as value |
|
33 | 33 | * @param \Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface $object Decorated processor |
34 | 34 | */ |
35 | 35 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $mapping, |
@@ -128,7 +128,6 @@ discard block |
||
128 | 128 | * Adds the given addresses to the basket |
129 | 129 | * |
130 | 130 | * @param \Aimeos\MShop\Context\Item\Iface Context object |
131 | - * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object to add the addresses to |
|
132 | 131 | * @param array $addresses Associative list of type as key and address object implementing \Aimeos\MShop\Order\Item\Base\Address\Iface as value |
133 | 132 | * @return \Aimeos\MShop\Order\Item\Base\Iface Order with addresses added |
134 | 133 | */ |
@@ -205,7 +204,6 @@ discard block |
||
205 | 204 | * Adds the given products to the basket |
206 | 205 | * |
207 | 206 | * @param \Aimeos\MShop\Context\Item\Iface Context object |
208 | - * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object to add the products to |
|
209 | 207 | * @param \Aimeos\MShop\Order\Item\Base\Product\Iface[] $orderProducts List of product items |
210 | 208 | * @param string $orderProductId Unique ID of the ordered subscription product |
211 | 209 | * @return \Aimeos\MShop\Order\Item\Base\Iface Order with products added |
@@ -232,7 +230,6 @@ discard block |
||
232 | 230 | * Adds a matching delivery and payment service to the basket |
233 | 231 | * |
234 | 232 | * @param \Aimeos\MShop\Context\Item\Iface Context object |
235 | - * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object to add the services to |
|
236 | 233 | * @param array $services Associative list of type as key and list of service objects implementing \Aimeos\MShop\Order\Item\Base\Service\Iface as values |
237 | 234 | * @return \Aimeos\MShop\Order\Item\Base\Iface Order with delivery and payment service added |
238 | 235 | */ |
@@ -326,7 +326,7 @@ |
||
326 | 326 | * |
327 | 327 | * @param string $name One of "domain", "max-items" or "max-query" |
328 | 328 | * @param mixed $default Default value if name is unknown |
329 | - * @return mixed Configuration value |
|
329 | + * @return string Configuration value |
|
330 | 330 | */ |
331 | 331 | protected function getConfig( $name, $default = null ) |
332 | 332 | { |
@@ -248,6 +248,9 @@ |
||
248 | 248 | } |
249 | 249 | |
250 | 250 | |
251 | + /** |
|
252 | + * @param string $catcode |
|
253 | + */ |
|
251 | 254 | protected function get( $catcode, array $domains = [] ) |
252 | 255 | { |
253 | 256 | $manager = \Aimeos\MShop\Catalog\Manager\Factory::create( $this->context ); |
@@ -73,6 +73,9 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | |
76 | + /** |
|
77 | + * @param integer $cnt |
|
78 | + */ |
|
76 | 79 | protected function addAttribute( array $data, $cnt ) |
77 | 80 | { |
78 | 81 | $data[] = 'length'; // type |
@@ -86,6 +89,9 @@ discard block |
||
86 | 89 | } |
87 | 90 | |
88 | 91 | |
92 | + /** |
|
93 | + * @param integer $cnt |
|
94 | + */ |
|
89 | 95 | protected function addMedia( array $data, $cnt ) |
90 | 96 | { |
91 | 97 | $data[] = "/path/to/image-$cnt.jpg"; // url |
@@ -94,6 +100,9 @@ discard block |
||
94 | 100 | } |
95 | 101 | |
96 | 102 | |
103 | + /** |
|
104 | + * @param integer $cnt |
|
105 | + */ |
|
97 | 106 | protected function addPrice( array $data, $cnt ) |
98 | 107 | { |
99 | 108 | $data[] = 1; // quantity |
@@ -105,6 +114,9 @@ discard block |
||
105 | 114 | } |
106 | 115 | |
107 | 116 | |
117 | + /** |
|
118 | + * @param integer $cnt |
|
119 | + */ |
|
108 | 120 | protected function addProduct( array $data, $cnt ) |
109 | 121 | { |
110 | 122 | $data[] = 'import-' . $cnt; // code |
@@ -116,6 +128,9 @@ discard block |
||
116 | 128 | } |
117 | 129 | |
118 | 130 | |
131 | + /** |
|
132 | + * @param integer $cnt |
|
133 | + */ |
|
119 | 134 | protected function addProductRef( array $data, $cnt ) |
120 | 135 | { |
121 | 136 | $data[] = 'import-' . ($cnt % 100); // code |
@@ -125,6 +140,9 @@ discard block |
||
125 | 140 | } |
126 | 141 | |
127 | 142 | |
143 | + /** |
|
144 | + * @param integer $cnt |
|
145 | + */ |
|
128 | 146 | protected function addProperty( array $data, $cnt ) |
129 | 147 | { |
130 | 148 | $data[] = 'package-weight'; // type |
@@ -134,6 +152,9 @@ discard block |
||
134 | 152 | } |
135 | 153 | |
136 | 154 | |
155 | + /** |
|
156 | + * @param integer $cnt |
|
157 | + */ |
|
137 | 158 | protected function addText( array $data, $cnt ) |
138 | 159 | { |
139 | 160 | $data[] = 'name'; // type |