@@ -46,6 +46,9 @@ |
||
46 | 46 | ); |
47 | 47 | */ |
48 | 48 | |
49 | + /** |
|
50 | + * @param integer $id |
|
51 | + */ |
|
49 | 52 | function __construct($kernel, $id) |
50 | 53 | { |
51 | 54 | parent::__construct($kernel, $id); |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * |
96 | 96 | * @param string $action Which action to perform? |
97 | 97 | * |
98 | - * @return void |
|
98 | + * @return boolean |
|
99 | 99 | */ |
100 | 100 | function transactionAction($action) |
101 | 101 | { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * returns possible status types |
183 | 183 | * @todo: duplicate in Procurement class |
184 | 184 | * |
185 | - * @return array status types |
|
185 | + * @return string[] status types |
|
186 | 186 | */ |
187 | 187 | public function getStatusTypes() |
188 | 188 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * returns the possible regions where procurement is bought |
198 | 198 | * @todo: duplicate in Procurement class |
199 | 199 | * |
200 | - * @return array possible regions |
|
200 | + * @return string[] possible regions |
|
201 | 201 | */ |
202 | 202 | public function getRegionTypes() |
203 | 203 | { |
@@ -36,7 +36,6 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Constructor |
38 | 38 | * |
39 | - * @param object $user Userobject |
|
40 | 39 | * |
41 | 40 | * @return void |
42 | 41 | */ |
@@ -77,9 +76,8 @@ discard block |
||
77 | 76 | /** |
78 | 77 | * Finds a product with an id |
79 | 78 | * |
80 | - * @param integer $id product id |
|
81 | 79 | * |
82 | - * @return object |
|
80 | + * @return Product |
|
83 | 81 | */ |
84 | 82 | function getById($product_id, $old_product_detail_id = 0) |
85 | 83 | { |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | * |
595 | 595 | * @deprecated |
596 | 596 | * |
597 | - * @return object |
|
597 | + * @return Keyword |
|
598 | 598 | */ |
599 | 599 | public function getKeywords() |
600 | 600 | { |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | /** |
605 | 605 | * Get keywords object |
606 | 606 | * |
607 | - * @return object |
|
607 | + * @return Keyword |
|
608 | 608 | */ |
609 | 609 | public function getKeyword() |
610 | 610 | { |
@@ -660,7 +660,6 @@ discard block |
||
660 | 660 | /** |
661 | 661 | * Delete all related product |
662 | 662 | * |
663 | - * @param integer $id Product id to relate to this product |
|
664 | 663 | * |
665 | 664 | * @return boolean |
666 | 665 | */ |
@@ -1040,7 +1039,7 @@ discard block |
||
1040 | 1039 | /** |
1041 | 1040 | * Gets the details |
1042 | 1041 | * |
1043 | - * @return object |
|
1042 | + * @return ProductDetail |
|
1044 | 1043 | */ |
1045 | 1044 | function getDetails() |
1046 | 1045 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Constructor |
45 | 45 | * |
46 | - * @param object $product Product object |
|
46 | + * @param Product $product Product object |
|
47 | 47 | * @param integer $old_detail_id Only used with old product details |
48 | 48 | * |
49 | 49 | * @return void |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @param array $array_var An array with data to save, @see $this->fields |
157 | 157 | * |
158 | - * @return integer |
|
158 | + * @return boolean |
|
159 | 159 | */ |
160 | 160 | public function save($array_var) |
161 | 161 | { |
@@ -259,7 +259,6 @@ |
||
259 | 259 | /** |
260 | 260 | * Set attribute for product |
261 | 261 | * |
262 | - * @param integer $id Attribute id to relate to this product |
|
263 | 262 | * |
264 | 263 | * @return boolean |
265 | 264 | */ |
@@ -82,6 +82,9 @@ |
||
82 | 82 | return $this->context->getKernel(); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @return integer |
|
87 | + */ |
|
85 | 88 | function getShopId() |
86 | 89 | { |
87 | 90 | if ($this->query('shop_id')) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @param string $headerImg The filepath for the header image |
139 | 139 | * |
140 | - * @return void |
|
140 | + * @return false|null |
|
141 | 141 | */ |
142 | 142 | public function addHeader($headerImg = '') |
143 | 143 | { |
@@ -191,6 +191,7 @@ discard block |
||
191 | 191 | * write the document to a file |
192 | 192 | * |
193 | 193 | * @param string $data The data to write |
194 | + * @param string $filnavn |
|
194 | 195 | * |
195 | 196 | * @return void |
196 | 197 | */ |