@@ -13,6 +13,9 @@ |
||
13 | 13 | return new NewsletterList($this->kernel, $id); |
14 | 14 | } |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $contact_id |
|
18 | + */ |
|
16 | 19 | function findByContactId($contact_id) |
17 | 20 | { |
18 | 21 | $db = new DB_Sql; |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Adds an existing contact |
178 | 178 | * |
179 | - * @param integer $contact_id Contact id |
|
179 | + * @param integer $contact Contact id |
|
180 | 180 | * |
181 | 181 | * @return integer of the id of the subscriber |
182 | 182 | */ |
@@ -489,6 +489,9 @@ discard block |
||
489 | 489 | } |
490 | 490 | } |
491 | 491 | |
492 | + /** |
|
493 | + * @param Contact $contact |
|
494 | + */ |
|
492 | 495 | private function getLoginUrl($contact) |
493 | 496 | { |
494 | 497 | if (!$link = $this->list->get('optin_link')) { |
@@ -548,7 +551,7 @@ discard block |
||
548 | 551 | } |
549 | 552 | |
550 | 553 | /** |
551 | - * @param object $observer Must implement an update() method |
|
554 | + * @param FakeObserver $observer Must implement an update() method |
|
552 | 555 | */ |
553 | 556 | public function addObserver($observer) |
554 | 557 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Constructor |
20 | 20 | * |
21 | - * @param object $list Newsletter list |
|
21 | + * @param FakeNewsletterList $list Newsletter list |
|
22 | 22 | * |
23 | 23 | * @return void |
24 | 24 | */ |
@@ -298,6 +298,10 @@ discard block |
||
298 | 298 | return $this->id; |
299 | 299 | } |
300 | 300 | |
301 | + /** |
|
302 | + * @param string $belong_to |
|
303 | + * @param integer $belong_to_id |
|
304 | + */ |
|
301 | 305 | function changeBelongTo($belong_to, $belong_to_id) |
302 | 306 | { |
303 | 307 | if ($this->id == 0) { |
@@ -321,6 +325,9 @@ discard block |
||
321 | 325 | |
322 | 326 | } |
323 | 327 | |
328 | + /** |
|
329 | + * @param string $status |
|
330 | + */ |
|
324 | 331 | function setStatus($status) |
325 | 332 | { |
326 | 333 | if ($this->id == 0) { |
@@ -582,7 +589,7 @@ discard block |
||
582 | 589 | /** |
583 | 590 | * returns the possible status types |
584 | 591 | * |
585 | - * @return array with status types |
|
592 | + * @return string[] with status types |
|
586 | 593 | */ |
587 | 594 | static function getStatusTypes() |
588 | 595 | { |
@@ -598,7 +605,7 @@ discard block |
||
598 | 605 | /** |
599 | 606 | * returns possible belong to types |
600 | 607 | * |
601 | - * @return array with belong to types |
|
608 | + * @return string[] with belong to types |
|
602 | 609 | */ |
603 | 610 | private function getBelongToTypes() |
604 | 611 | { |
@@ -611,7 +618,7 @@ discard block |
||
611 | 618 | /** |
612 | 619 | * returns the implemented providers |
613 | 620 | * |
614 | - * @return array with providers |
|
621 | + * @return string[] with providers |
|
615 | 622 | */ |
616 | 623 | static function getImplementedProviders() |
617 | 624 | { |
@@ -8,6 +8,9 @@ |
||
8 | 8 | |
9 | 9 | class OnlinePaymentDefault extends OnlinePayment |
10 | 10 | { |
11 | + /** |
|
12 | + * @param integer $id |
|
13 | + */ |
|
11 | 14 | function __construct($kernel, $id) { |
12 | 15 | |
13 | 16 | parent::__construct($kernel, $id); |
@@ -280,6 +280,9 @@ discard block |
||
280 | 280 | return true; |
281 | 281 | } |
282 | 282 | |
283 | + /** |
|
284 | + * @param string $dk_paid_date |
|
285 | + */ |
|
283 | 286 | function setPaid($dk_paid_date) |
284 | 287 | { |
285 | 288 | if ($this->get('id') == 0) { |
@@ -369,6 +372,11 @@ discard block |
||
369 | 372 | * |
370 | 373 | * @param object year year object |
371 | 374 | * @param integer voucher_number |
375 | + * @param Year $year |
|
376 | + * @param integer $voucher_number |
|
377 | + * @param string $voucher_date |
|
378 | + * @param integer $credit_account_id |
|
379 | + * @param Stub_Translation $translation |
|
372 | 380 | * |
373 | 381 | * @return boolean |
374 | 382 | */ |
@@ -685,7 +693,7 @@ discard block |
||
685 | 693 | * |
686 | 694 | * @todo: duplicate in Procurement class |
687 | 695 | * |
688 | - * @return array status types |
|
696 | + * @return string[] status types |
|
689 | 697 | */ |
690 | 698 | private function getStatusTypes() |
691 | 699 | { |
@@ -700,7 +708,7 @@ discard block |
||
700 | 708 | * returns the possible regions where procurement is bought |
701 | 709 | * @todo: duplicate in Procurement class |
702 | 710 | * |
703 | - * @return array possible regions |
|
711 | + * @return string[] possible regions |
|
704 | 712 | */ |
705 | 713 | public function getRegionTypes() |
706 | 714 | { |
@@ -58,6 +58,8 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @param object Procurement |
60 | 60 | * @param integer item id |
61 | + * @param Procurement $procurement |
|
62 | + * @param integer $id |
|
61 | 63 | * @return void |
62 | 64 | */ |
63 | 65 | public function __construct($procurement, $id) |
@@ -201,7 +203,7 @@ discard block |
||
201 | 203 | /** |
202 | 204 | * Gets the tax percent on the individual product |
203 | 205 | * |
204 | - * @return float |
|
206 | + * @return integer |
|
205 | 207 | */ |
206 | 208 | public function getProductTaxPercent() |
207 | 209 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * Returns the price of the product |
186 | 186 | * |
187 | - * @return object Ilib_Variable_Float with price |
|
187 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
188 | 188 | */ |
189 | 189 | public function getPrice() |
190 | 190 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * Used to set price |
196 | 196 | * |
197 | - * @param object $price Ilib_Variable_Float |
|
197 | + * @param Ilib_Variable_Float $price Ilib_Variable_Float |
|
198 | 198 | * @return void |
199 | 199 | */ |
200 | 200 | public function setPrice(Ilib_Variable_Float $price) |
@@ -206,9 +206,9 @@ discard block |
||
206 | 206 | * Returns the price of the product in given currency |
207 | 207 | * |
208 | 208 | * @param object $currency Intraface_modules_currency_Currency |
209 | - * @param integer $exchange_rage_id |
|
209 | + * @param integer $exchange_rate_id |
|
210 | 210 | * |
211 | - * @return obejct Ilib_Variable_Float with price of the variation in given currency |
|
211 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency |
|
212 | 212 | */ |
213 | 213 | public function getPriceInCurrency($currency, $exchange_rate_id = 0) |
214 | 214 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Returns price include vat of the product |
220 | 220 | * |
221 | - * @return object Ilib_Variable_Float with price including vat |
|
221 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat |
|
222 | 222 | */ |
223 | 223 | public function getPriceIncludingVat() |
224 | 224 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * |
231 | 231 | * @param object $currency Intraface_modules_currency_Currency |
232 | 232 | * @param integer $exchange_rate_id |
233 | - * @return object Ilib_Variable_Float with price including vat in given currency |
|
233 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency |
|
234 | 234 | */ |
235 | 235 | public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id) |
236 | 236 | { |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Returns the before price of the product |
247 | 247 | * |
248 | - * @return object Ilib_Variable_Float with price |
|
248 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
249 | 249 | */ |
250 | 250 | public function getBeforePrice() |
251 | 251 | { |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | * Returns the before price of the product in given currency |
257 | 257 | * |
258 | 258 | * @param object $currency Intraface_modules_currency_Currency |
259 | - * @param integer $exchange_rage_id |
|
259 | + * @param integer $exchange_rate_id |
|
260 | 260 | * |
261 | - * @return obejct Ilib_Variable_Float with price of the variation in given currency |
|
261 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency |
|
262 | 262 | */ |
263 | 263 | public function getBeforePriceInCurrency($currency, $exchange_rate_id = 0) |
264 | 264 | { |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * Returns before price include vat of the product |
270 | 270 | * |
271 | - * @return object Ilib_Variable_Float with price including vat |
|
271 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat |
|
272 | 272 | */ |
273 | 273 | public function getBeforePriceIncludingVat() |
274 | 274 | { |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * |
281 | 281 | * @param object $currency Intraface_modules_currency_Currency |
282 | 282 | * @param integer $exchange_rate_id |
283 | - * @return object Ilib_Variable_Float with price including vat in given currency |
|
283 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency |
|
284 | 284 | */ |
285 | 285 | public function getBeforePriceIncludingVatInCurrency($currency, $exchange_rate_id) |
286 | 286 | { |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | /** |
291 | 291 | * Sets the weight |
292 | - * @param object $value Ilib_Value_Float |
|
292 | + * @param Ilib_Variable_Float $value Ilib_Value_Float |
|
293 | 293 | * @return void |
294 | 294 | */ |
295 | 295 | public function setWeight(Ilib_Variable_Float $value) |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | /** |
301 | 301 | * Returns the weight of the product |
302 | 302 | * |
303 | - * @return object Ilib_Variable_Float with price |
|
303 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
304 | 304 | */ |
305 | 305 | public function getWeight() |
306 | 306 | { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | /** |
362 | 362 | * Returns the var percenttage of the product |
363 | 363 | * |
364 | - * @return object Ilib_Variable_Float with vat percent |
|
364 | + * @return Ilib_Variable_Float Ilib_Variable_Float with vat percent |
|
365 | 365 | */ |
366 | 366 | public function getVatPercent() |
367 | 367 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @param object Product |
77 | 77 | * |
78 | - * @return object Ilib_Variable_Float with price |
|
78 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
79 | 79 | */ |
80 | 80 | public function getPrice($product) |
81 | 81 | { |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | * @todo Product should not be given as parameter, but defined as relation. Product needs to be made in doctrine |
93 | 93 | * |
94 | 94 | * @param object $currency Intraface_modules_currency_Currency |
95 | - * @param integer $exchange_rage_id |
|
95 | + * @param integer $exchange_rate_id |
|
96 | 96 | * @param object $product Product |
97 | 97 | * |
98 | - * @return obejct Ilib_Variable_Float with price of the variation in given currency |
|
98 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency |
|
99 | 99 | */ |
100 | 100 | public function getPriceInCurrency($currency, $exchange_rate_id = 0, $product) |
101 | 101 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param object $product Product |
111 | 111 | * |
112 | - * @return object Ilib_Variable_Float with price including vat |
|
112 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat |
|
113 | 113 | */ |
114 | 114 | public function getPriceIncludingVat($product) |
115 | 115 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @param integer $exchange_rate_id |
130 | 130 | * @param object product Product |
131 | 131 | * |
132 | - * @return object Ilib_Variable_Float with price including vat in given currency |
|
132 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency |
|
133 | 133 | */ |
134 | 134 | public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id, $product) |
135 | 135 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @param object Product |
145 | 145 | * |
146 | - * @return object Ilib_Variable_Float with price |
|
146 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
147 | 147 | */ |
148 | 148 | public function getWeight($product) |
149 | 149 | { |