@@ -360,10 +360,11 @@ discard block |
||
| 360 | 360 | /** |
| 361 | 361 | * States the payment i the given year |
| 362 | 362 | * |
| 363 | - * @param object $year Accounting Year object |
|
| 363 | + * @param Year $year Accounting Year object |
|
| 364 | 364 | * @param integer $voucher_number |
| 365 | 365 | * @param string $voucher_date |
| 366 | 366 | * @param integer $state_account_number |
| 367 | + * @param Stub_Translation $translation |
|
| 367 | 368 | * |
| 368 | 369 | * @return boolean true on succes or false. |
| 369 | 370 | */ |
@@ -454,7 +455,7 @@ discard block |
||
| 454 | 455 | /** |
| 455 | 456 | * returns possible payment types |
| 456 | 457 | * |
| 457 | - * @return array payment types |
|
| 458 | + * @return string[] payment types |
|
| 458 | 459 | * |
| 459 | 460 | */ |
| 460 | 461 | public static function getTypes() |
@@ -469,7 +470,7 @@ discard block |
||
| 469 | 470 | /** |
| 470 | 471 | * returns the possible types payments can be for. |
| 471 | 472 | * |
| 472 | - * @return array payment for types |
|
| 473 | + * @return string[] payment for types |
|
| 473 | 474 | */ |
| 474 | 475 | private static function getPaymentForTypes() |
| 475 | 476 | { |
@@ -212,7 +212,6 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * @param struct $credentials Credentials to use the server |
| 214 | 214 | * @param integer $shop_id Id for the shop |
| 215 | - * @param integer $id Product id |
|
| 216 | 215 | * |
| 217 | 216 | * @return array |
| 218 | 217 | */ |
@@ -328,7 +327,7 @@ discard block |
||
| 328 | 327 | * |
| 329 | 328 | * @param struct $credentials Credentials to use the server |
| 330 | 329 | * @param integer $shop_id Id for the shop |
| 331 | - * @param integer $produt_id Product id to add |
|
| 330 | + * @param integer $product_id Product id to add |
|
| 332 | 331 | * @param integer $product_variation_id Product variation id to change |
| 333 | 332 | * @param integer $quantity Optional quantity |
| 334 | 333 | * @param string $text Extra text to the itemline |
@@ -371,7 +370,7 @@ discard block |
||
| 371 | 370 | * @param string $text Extra text to the itemline |
| 372 | 371 | * @param integer $product_detail_id Product detail id |
| 373 | 372 | * |
| 374 | - * @return mixed |
|
| 373 | + * @return boolean |
|
| 375 | 374 | */ |
| 376 | 375 | public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0) |
| 377 | 376 | { |
@@ -791,6 +790,7 @@ discard block |
||
| 791 | 790 | /** |
| 792 | 791 | * Initialize the webshop |
| 793 | 792 | * |
| 793 | + * @param integer $shop_id |
|
| 794 | 794 | * @return void |
| 795 | 795 | */ |
| 796 | 796 | private function _factoryWebshop($shop_id) |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | public $kernel; |
| 10 | 10 | public $cmssite; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param Stub_Kernel $kernel |
|
| 14 | + */ |
|
| 12 | 15 | function __construct($kernel) |
| 13 | 16 | { |
| 14 | 17 | $this->kernel = $kernel; |
@@ -6,6 +6,10 @@ |
||
| 6 | 6 | class FakeStockProduct |
| 7 | 7 | { |
| 8 | 8 | public $kernel; |
| 9 | + |
|
| 10 | + /** |
|
| 11 | + * @param Stub_Kernel $kernel |
|
| 12 | + */ |
|
| 9 | 13 | function __construct($kernel) |
| 10 | 14 | { |
| 11 | 15 | $this->kernel = $kernel; |