1 | <?php |
||
6 | class TimeSpeller extends \morphos\TimeSpeller |
||
7 | { |
||
8 | /** |
||
9 | * @var string[] |
||
10 | * @phpstan-var array<string, string> |
||
11 | */ |
||
12 | protected static $units = [ |
||
13 | self::YEAR => 'year', |
||
14 | self::MONTH => 'month', |
||
15 | self::DAY => 'day', |
||
16 | self::HOUR => 'hour', |
||
17 | self::MINUTE => 'minute', |
||
18 | self::SECOND => 'second', |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * @param int $count |
||
23 | * @param string $unit |
||
24 | * @return string |
||
25 | */ |
||
26 | 17 | public static function spellUnit($count, $unit) |
|
34 | } |
||
35 |