Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Time
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 localize
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Cosray\Value;
6
7use IntlDateFormatter;
8
9class Time extends DateTime
10{
11    public const FORMAT = 'H:i';
12
13    public function localize(
14        int $dateFormat = IntlDateFormatter::NONE,
15        int $timeFormat = IntlDateFormatter::SHORT,
16    ): string {
17        return parent::localize($dateFormat, $timeFormat);
18    }
19}