@@ -23,6 +23,9 @@ |
||
| 23 | 23 | return $this->context->getKernel(); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @return Invoice |
|
| 28 | + */ |
|
| 26 | 29 | function getModel() |
| 27 | 30 | { |
| 28 | 31 | return $this->context->getModel(); |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * |
| 144 | 144 | * @param object $kernel Kernel |
| 145 | 145 | * @param integer $id Debtor id or debtor identifier_key |
| 146 | - * @param type $tpye String TODO What is this used for as a last parameter? |
|
| 146 | + * @param type $type String TODO What is this used for as a last parameter? |
|
| 147 | 147 | */ |
| 148 | 148 | public static function factory($kernel, $id = 0, $type = "") |
| 149 | 149 | {
|
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | /** |
| 618 | 618 | * S�tter status for debtoren |
| 619 | 619 | * |
| 620 | - * @return true / false |
|
| 620 | + * @return boolean / false |
|
| 621 | 621 | */ |
| 622 | 622 | public function setStatus($status) |
| 623 | 623 | {
|
@@ -675,7 +675,7 @@ discard block |
||
| 675 | 675 | * @param string $from Where from |
| 676 | 676 | * @param integer $from_id From id |
| 677 | 677 | * |
| 678 | - * @return true / false |
|
| 678 | + * @return boolean / false |
|
| 679 | 679 | */ |
| 680 | 680 | private function setFrom($from = 'manuel', $from_id = 0) |
| 681 | 681 | {
|
@@ -1141,7 +1141,7 @@ discard block |
||
| 1141 | 1141 | /** |
| 1142 | 1142 | * Gets the intranet address |
| 1143 | 1143 | * |
| 1144 | - * @return object |
|
| 1144 | + * @return Intraface_Address |
|
| 1145 | 1145 | */ |
| 1146 | 1146 | public function getIntranetAddress() |
| 1147 | 1147 | {
|
@@ -1227,7 +1227,7 @@ discard block |
||
| 1227 | 1227 | /** |
| 1228 | 1228 | * returns the possible debtor types! |
| 1229 | 1229 | * |
| 1230 | - * @return array types |
|
| 1230 | + * @return string[] types |
|
| 1231 | 1231 | */ |
| 1232 | 1232 | static function getDebtorTypes() |
| 1233 | 1233 | {
|
@@ -1241,7 +1241,7 @@ discard block |
||
| 1241 | 1241 | /** |
| 1242 | 1242 | * returns the possible places where the debtor comes from |
| 1243 | 1243 | * |
| 1244 | - * @return array with the allowed froms |
|
| 1244 | + * @return string[] with the allowed froms |
|
| 1245 | 1245 | */ |
| 1246 | 1246 | private function getFromTypes() |
| 1247 | 1247 | {
|
@@ -1257,7 +1257,7 @@ discard block |
||
| 1257 | 1257 | /** |
| 1258 | 1258 | * returns possible status types |
| 1259 | 1259 | * |
| 1260 | - * @return array possible status types |
|
| 1260 | + * @return string[] possible status types |
|
| 1261 | 1261 | */ |
| 1262 | 1262 | private function getStatusTypes() |
| 1263 | 1263 | {
|
@@ -1272,7 +1272,7 @@ discard block |
||
| 1272 | 1272 | /** |
| 1273 | 1273 | * returns possible payment methods |
| 1274 | 1274 | * |
| 1275 | - * @return array possible payment methods |
|
| 1275 | + * @return string[] possible payment methods |
|
| 1276 | 1276 | */ |
| 1277 | 1277 | private function getPaymentMethods() |
| 1278 | 1278 | {
|
@@ -77,7 +77,6 @@ |
||
| 77 | 77 | * s� man kan se, hvad folk er interesseret i. |
| 78 | 78 | * S�gemaskinen skal v�re tolerant for stavefejl |
| 79 | 79 | * |
| 80 | - * @param object $search |
|
| 81 | 80 | * |
| 82 | 81 | * @return object collection containing products |
| 83 | 82 | */ |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * returns the possible debtor types! |
| 22 | 22 | * |
| 23 | - * @return array types |
|
| 23 | + * @return string[] types |
|
| 24 | 24 | */ |
| 25 | 25 | static function getDebtorTypes() |
| 26 | 26 | { |
@@ -60,8 +60,6 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Bruges til at lave en menu p� kontakten eller produktet |
| 62 | 62 | * |
| 63 | - * @param string $type contact eller product |
|
| 64 | - * @param integer $type_id id p� contact eller product. |
|
| 65 | 63 | * |
| 66 | 64 | * @return integer |
| 67 | 65 | */ |
@@ -95,6 +93,9 @@ discard block |
||
| 95 | 93 | return $db->numRows(); |
| 96 | 94 | } |
| 97 | 95 | |
| 96 | + /** |
|
| 97 | + * @param integer $id |
|
| 98 | + */ |
|
| 98 | 99 | function findById($id) |
| 99 | 100 | { |
| 100 | 101 | if (is_int($id) && $id != 0) { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * Constructor |
| 66 | 66 | * |
| 67 | - * @param object $debtor Debtor object |
|
| 67 | + * @param Debtor $debtor Debtor object |
|
| 68 | 68 | * @param integer $id If a special item id is needed |
| 69 | 69 | * |
| 70 | 70 | * @return void |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | /** |
| 245 | 245 | * Gets the tax percent on the individual product |
| 246 | 246 | * |
| 247 | - * @return float |
|
| 247 | + * @return integer |
|
| 248 | 248 | */ |
| 249 | 249 | public function getTaxPercent() |
| 250 | 250 | {
|
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | /** |
| 14 | 14 | * Do not change the key for the payment methods |
| 15 | 15 | * |
| 16 | - * @return array The possible payment types |
|
| 16 | + * @return string[] The possible payment types |
|
| 17 | 17 | */ |
| 18 | 18 | public function getTypes() |
| 19 | 19 | { |
@@ -30,6 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Returns specific payment method |
| 33 | + * @param string $method |
|
| 33 | 34 | */ |
| 34 | 35 | public function getByName($method) |
| 35 | 36 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * @param string $belong_to Which type the file belongs to |
| 27 | 27 | * @param integer $belong_to_id The id this appended file belongs to |
| 28 | 28 | * |
| 29 | - * @return void |
|
| 29 | + * @return integer |
|
| 30 | 30 | */ |
| 31 | 31 | public function __construct($kernel, $belong_to, $belong_to_id) |
| 32 | 32 | {
|
@@ -358,7 +358,8 @@ discard block |
||
| 358 | 358 | * creates and temporary file handler |
| 359 | 359 | * |
| 360 | 360 | * @param string optional file name |
| 361 | - * @return object temporary file |
|
| 361 | + * @param string $file_name |
|
| 362 | + * @return TemporaryFile temporary file |
|
| 362 | 363 | */ |
| 363 | 364 | public function createTemporaryFile($file_name = NULL) |
| 364 | 365 | { |
@@ -691,7 +692,6 @@ discard block |
||
| 691 | 692 | /** |
| 692 | 693 | * Returns RandomKeyGenerator |
| 693 | 694 | * |
| 694 | - * @param integer $length the length of the random key |
|
| 695 | 695 | * @return object RandomKeyGenerator |
| 696 | 696 | */ |
| 697 | 697 | private function getRandomKeyGenerator() |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | {
|
| 80 | 80 | private $file_handler; |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param FileHandler $file_handler |
|
| 84 | + */ |
|
| 82 | 85 | function __construct($file_handler) |
| 83 | 86 | {
|
| 84 | 87 | $this->file_handler = $file_handler; |