| 1 | <?php |
||
| 13 | class Date extends Intl |
||
| 14 | { |
||
| 15 | use WithLocales { |
||
| 16 | setLocale as _setLocale; |
||
| 17 | setFallbackLocale as _setFallbackLocale; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Dynamically handle calls to the class. |
||
| 22 | * |
||
| 23 | * @param string $method |
||
| 24 | * @param array $parameters |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | 85 | public function __call($method, $parameters) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Set the current locale. |
||
| 34 | * |
||
| 35 | * @param string $locale |
||
| 36 | * @return $this |
||
| 37 | * @throws \Punic\Exception\InvalidLocale |
||
| 38 | */ |
||
| 39 | 90 | public function setLocale($locale) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Set the fallback locale. |
||
| 50 | * |
||
| 51 | * @param string $locale |
||
| 52 | * @return $this |
||
| 53 | * @throws \Punic\Exception\InvalidLocale |
||
| 54 | */ |
||
| 55 | 88 | public function setFallbackLocale($locale) |
|
| 63 | } |