@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * @param string $text Extra text to the itemline |
261 | 261 | * @param integer $product_detail_id Product detail id |
262 | 262 | * |
263 | - * @return mixed |
|
263 | + * @return boolean |
|
264 | 264 | */ |
265 | 265 | public function changeProductInBasket($credentials, $product_id, $quantity, $text = '', $product_detail_id = 0) |
266 | 266 | { |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | * |
608 | 608 | * @param struct $credentials Credentials to use the server |
609 | 609 | * |
610 | - * @return array |
|
610 | + * @return boolean |
|
611 | 611 | */ |
612 | 612 | private function checkCredentials($credentials) |
613 | 613 | { |
@@ -250,6 +250,7 @@ discard block |
||
250 | 250 | * Formats array to return from product list from Doctrine |
251 | 251 | * |
252 | 252 | * @param object $doctrine_products Doctrine_Collection |
253 | + * @param integer $attribute_id |
|
253 | 254 | * @return array with products |
254 | 255 | */ |
255 | 256 | private function createDoctrineProductsListArray($doctrine_products, $attribute_id = null) |
@@ -563,7 +564,6 @@ discard block |
||
563 | 564 | * |
564 | 565 | * @param struct $credentials Credentials to use the server |
565 | 566 | * @param integer $shop_id Id for the shop |
566 | - * @param integer $id Product id |
|
567 | 567 | * |
568 | 568 | * @return array |
569 | 569 | */ |
@@ -741,7 +741,7 @@ discard block |
||
741 | 741 | * |
742 | 742 | * @param struct $credentials Credentials to use the server |
743 | 743 | * @param integer $shop_id Id for the shop |
744 | - * @param integer $produt_id Product id to add |
|
744 | + * @param integer $product_id Product id to add |
|
745 | 745 | * @param integer $product_variation_id Product variation id to change |
746 | 746 | * @param integer $quantity Optional quantity |
747 | 747 | * @param string $text Extra text to the itemline |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | * @param string $text Extra text to the itemline |
785 | 785 | * @param integer $product_detail_id Product detail id |
786 | 786 | * |
787 | - * @return mixed |
|
787 | + * @return boolean |
|
788 | 788 | */ |
789 | 789 | public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0) |
790 | 790 | { |
@@ -1238,6 +1238,7 @@ discard block |
||
1238 | 1238 | /** |
1239 | 1239 | * Initialize the webshop |
1240 | 1240 | * |
1241 | + * @param integer $shop_id |
|
1241 | 1242 | * @return void |
1242 | 1243 | */ |
1243 | 1244 | private function _factoryWebshop($shop_id) |
@@ -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) |
@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | $this->value['saldo'] = 100; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $type |
|
53 | + */ |
|
51 | 54 | function getSaldo($type, $date_from, $date_to) |
52 | 55 | { |
53 | 56 | |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return 1; |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param integer $id |
|
87 | + */ |
|
82 | 88 | function getAccount($id) |
83 | 89 | { |
84 | 90 | return new FakeVatPeriodAccount(new FakeVatPeriodYear, $id); |
@@ -8,6 +8,10 @@ discard block |
||
8 | 8 | public $kernel; |
9 | 9 | public $cmssite; |
10 | 10 | public $dbquery; |
11 | + |
|
12 | + /** |
|
13 | + * @param FakeCMSSite $site |
|
14 | + */ |
|
11 | 15 | function __construct($site) |
12 | 16 | { |
13 | 17 | $this->cmssite = $site; |
@@ -37,6 +41,10 @@ discard block |
||
37 | 41 | { |
38 | 42 | public $kernel; |
39 | 43 | public $cmssite; |
44 | + |
|
45 | + /** |
|
46 | + * @param FakeCMSPage $page |
|
47 | + */ |
|
40 | 48 | function __construct($page) |
41 | 49 | { |
42 | 50 | $this->cmspage = $page; |
@@ -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; |
@@ -52,6 +52,9 @@ |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $post |
|
57 | + */ |
|
55 | 58 | function createPost($post) |
56 | 59 | { |
57 | 60 | $result = $this->db->exec('INSERT INTO ' . $this->table . ' (name) VALUES ('.$this->db->quote($post, 'text').')'); |
@@ -4,6 +4,9 @@ |
||
4 | 4 | private $id = 1; |
5 | 5 | public $kernel; |
6 | 6 | |
7 | + /** |
|
8 | + * @param FakeContactKernel $kernel |
|
9 | + */ |
|
7 | 10 | function __construct($kernel) |
8 | 11 | { |
9 | 12 | $this->kernel = $kernel; |
@@ -63,6 +63,10 @@ discard block |
||
63 | 63 | class FakeDebtorSetting |
64 | 64 | { |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $type |
|
68 | + * @param string $setting |
|
69 | + */ |
|
66 | 70 | function get($type, $setting) |
67 | 71 | { |
68 | 72 | |
@@ -145,6 +149,9 @@ discard block |
||
145 | 149 | |
146 | 150 | } |
147 | 151 | |
152 | + /** |
|
153 | + * @param Invoice $debtor |
|
154 | + */ |
|
148 | 155 | function createPayment($debtor) |
149 | 156 | { |
150 | 157 | $payment = new Payment($debtor); |