Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
FrmtrDateShortTimeShort | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
createFormatter | |
100.00% |
9 / 9 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
4 | */ |
5 | |
6 | declare(strict_types=1); |
7 | |
8 | namespace pvc\frmtr\date_time; |
9 | |
10 | use IntlDateFormatter; |
11 | |
12 | /** |
13 | * Class FrmtrDateTime |
14 | */ |
15 | class FrmtrDateShortTimeShort extends FrmtrDateTimeAbstract |
16 | { |
17 | protected function createFormatter(): IntlDateFormatter |
18 | { |
19 | $dateType = IntlDateFormatter::SHORT; |
20 | $timeType = IntlDateFormatter::SHORT; |
21 | |
22 | return new IntlDateFormatter( |
23 | (string)$this->getLocale(), |
24 | $dateType, |
25 | $timeType, |
26 | $this->getTimeZone()->getName(), |
27 | $this->getCalendarType() |
28 | ); |
29 | } |
30 | } |