Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | class TimeSpinner extends Spinner |
||
11 | { |
||
12 | protected const INTERVAL = 1; |
||
13 | protected const FRAMES = null; |
||
14 | protected const |
||
15 | STYLES = |
||
16 | [ |
||
17 | StylesInterface::SPINNER_STYLES => |
||
18 | [ |
||
19 | StylesInterface::COLOR256 => StylesInterface::DISABLED, |
||
20 | StylesInterface::COLOR => StylesInterface::DISABLED, |
||
21 | ], |
||
22 | ]; |
||
23 | |||
24 | /** @var string */ |
||
25 | protected $timeFormat = 'T Y-m-d H:i:s'; |
||
26 | |||
27 | /** |
||
28 | * @param string $timeFormat |
||
29 | * @return TimeSpinner |
||
30 | */ |
||
31 | 1 | public function setTimeFormat(string $timeFormat): TimeSpinner |
|
35 | } |
||
36 | |||
37 | /** {@inheritDoc} */ |
||
38 | 1 | public function spin(?float $percent = null, ?string $message = null): string |
|
41 | } |
||
42 | |||
43 | /** {@inheritDoc} */ |
||
44 | 1 | public function begin(?float $percent = null): string |
|
47 | } |
||
48 | |||
49 | /** {@inheritDoc} */ |
||
50 | 1 | protected function defaultSettings(): SettingsInterface |
|
58 |