@@ -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; |
@@ -219,7 +219,6 @@ discard block |
||
| 219 | 219 | * Checks whether a name is free to use |
| 220 | 220 | * |
| 221 | 221 | * @param string $name |
| 222 | - * @param integer $id integer which should not be checked |
|
| 223 | 222 | * @return boolean true or false |
| 224 | 223 | */ |
| 225 | 224 | private function isNameFree($name, $type_key = 0) |
@@ -353,7 +352,7 @@ discard block |
||
| 353 | 352 | /** |
| 354 | 353 | * returns the resize types |
| 355 | 354 | * |
| 356 | - * @return array resize types |
|
| 355 | + * @return string[] resize types |
|
| 357 | 356 | */ |
| 358 | 357 | public function getResizeTypes() |
| 359 | 358 | { |
@@ -207,6 +207,9 @@ |
||
| 207 | 207 | $this->removeDir('/home/intraface/upload/' . $intranet_id . '/'); |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | + /** |
|
| 211 | + * @param string $path |
|
| 212 | + */ |
|
| 210 | 213 | protected function removeDir($path) |
| 211 | 214 | { |
| 212 | 215 | // Add trailing slash to $path if one is not there |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | * @param mixed sub_access_id either id or name of sub_access |
| 193 | 193 | * @param integer intranet_id id of intranet to give access |
| 194 | 194 | * |
| 195 | - * @return void |
|
| 195 | + * @return boolean |
|
| 196 | 196 | */ |
| 197 | 197 | function setSubAccess($module_id, $sub_access_id, $intranet_id = 0) |
| 198 | 198 | { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * returns Payment object |
| 41 | 41 | * |
| 42 | - * @return object Payment |
|
| 42 | + * @return Payment Payment |
|
| 43 | 43 | */ |
| 44 | 44 | private function getPayment() |
| 45 | 45 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * returns depreciation object |
| 52 | 52 | * |
| 53 | - * @return object Depreciation |
|
| 53 | + * @return Depreciation Depreciation |
|
| 54 | 54 | */ |
| 55 | 55 | private function getDepreciation() |
| 56 | 56 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Returns Credit note object |
| 63 | 63 | * |
| 64 | - * @return object creditnote |
|
| 64 | + * @return CreditNote creditnote |
|
| 65 | 65 | */ |
| 66 | 66 | private function getCreditNote() |
| 67 | 67 | { |
@@ -39,10 +39,11 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * States the payment i the given year |
| 41 | 41 | * |
| 42 | - * @param object $year Accounting Year object |
|
| 42 | + * @param Year $year Accounting Year object |
|
| 43 | 43 | * @param integer $voucher_number |
| 44 | 44 | * @param string $voucher_date |
| 45 | 45 | * @param integer $state_account_number |
| 46 | + * @param Stub_Translation $translation |
|
| 46 | 47 | * |
| 47 | 48 | * @return boolean true on succes or false. |
| 48 | 49 | */ |
@@ -136,7 +137,7 @@ discard block |
||
| 136 | 137 | /** |
| 137 | 138 | * returns possible payment types |
| 138 | 139 | * |
| 139 | - * @return array payment types |
|
| 140 | + * @return string[] payment types |
|
| 140 | 141 | * |
| 141 | 142 | */ |
| 142 | 143 | public static function getTypes() |
@@ -149,7 +150,7 @@ discard block |
||
| 149 | 150 | /** |
| 150 | 151 | * returns the possible types payments can be for. |
| 151 | 152 | * |
| 152 | - * @return array payment for types |
|
| 153 | + * @return string[] payment for types |
|
| 153 | 154 | */ |
| 154 | 155 | private static function getPaymentForTypes() |
| 155 | 156 | { |
@@ -13,6 +13,9 @@ |
||
| 13 | 13 | parent::__construct($translation, $file); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param Reminder $reminder |
|
| 18 | + */ |
|
| 16 | 19 | function visit($reminder) |
| 17 | 20 | { |
| 18 | 21 | if ($reminder->get('id') == 0) { |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | private $db; |
| 12 | 12 | public $error; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param Reminder $reminder |
|
| 16 | + */ |
|
| 14 | 17 | function __construct($reminder, $id = 0) |
| 15 | 18 | { |
| 16 | 19 | $this->reminder = $reminder; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | * |
| 52 | 52 | * @param object action An action object |
| 53 | 53 | * |
| 54 | - * @return boolean true or false |
|
| 54 | + * @return null|string true or false |
|
| 55 | 55 | */ |
| 56 | 56 | public function store($action) |
| 57 | 57 | { |