@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | */ |
39 | 39 | private static $nice_format = 'd/m/Y'; |
40 | 40 | |
41 | + /** |
|
42 | + * @param string|null $value |
|
43 | + */ |
|
41 | 44 | public function setValue($value, $record = null, $markChanged = true) { |
42 | 45 | if($value === false || $value === null || (is_string($value) && !strlen($value))) { |
43 | 46 | // don't try to evaluate empty values with strtotime() below, as it returns "1970-01-01" when it should be |
@@ -194,7 +197,7 @@ discard block |
||
194 | 197 | * Return a date formatted as per a CMS user's settings. |
195 | 198 | * |
196 | 199 | * @param Member $member |
197 | - * @return boolean | string A date formatted as per user-defined settings. |
|
200 | + * @return false|string | string A date formatted as per user-defined settings. |
|
198 | 201 | */ |
199 | 202 | public function FormatFromSettings($member = null) { |
200 | 203 | require_once 'Zend/Date.php'; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @param string $name |
22 | 22 | * @param int $wholeSize |
23 | 23 | * @param int $decimalSize |
24 | - * @param float|int $defaultValue |
|
24 | + * @param integer $defaultValue |
|
25 | 25 | */ |
26 | 26 | public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) { |
27 | 27 | $this->wholeSize = is_int($wholeSize) ? $wholeSize : 9; |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @return float |
|
36 | + * @return string |
|
37 | 37 | */ |
38 | 38 | public function Nice() { |
39 | 39 | return number_format($this->value, $this->decimalSize); |
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return int |
|
43 | + * @return double |
|
44 | 44 | */ |
45 | 45 | public function Int() { |
46 | 46 | return floor($this->value); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return float |
|
86 | + * @return integer |
|
87 | 87 | */ |
88 | 88 | public function nullValue() { |
89 | 89 | return 0; |