Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
FrmtrDateShortTimeShort
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 createFormatter
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * @author: Doug Wilbourne (dougwilbourne@gmail.com)
4 */
5
6declare(strict_types=1);
7
8namespace pvc\frmtr\date_time;
9
10use IntlDateFormatter;
11
12/**
13 * Class FrmtrDateTime
14 */
15class 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}