@@ -47,6 +47,9 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $code |
|
| 52 | + */ |
|
| 50 | 53 | public function getFormat($code) |
| 51 | 54 | { |
| 52 | 55 | if (isset($this->formats[$code])) { |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $format |
|
| 47 | + */ |
|
| 45 | 48 | protected function setDate($format, $value) |
| 46 | 49 | { |
| 47 | 50 | $this->date = DateTime::createFromFormat($format, $value); |
@@ -47,9 +47,10 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Count and format number. |
| 50 | - * @param number $number |
|
| 50 | + * @param double $number |
|
| 51 | 51 | * @param string|NULL |
| 52 | 52 | * @param string $to output currency, NULL set actual |
| 53 | + * @param string $from |
|
| 53 | 54 | * @return string |
| 54 | 55 | */ |
| 55 | 56 | public function format($number, $from = null, $to = null) |