Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | class ProgressJuggler extends AbstractJuggler |
||
10 | { |
||
11 | /** @var string */ |
||
12 | protected $spacer = Defaults::ONE_SPACE_SYMBOL; |
||
13 | /** @var string */ |
||
14 | protected $currentFrame; |
||
15 | |||
16 | 11 | public function __construct(float $percent, Circular $style = null) |
|
17 | { |
||
18 | 11 | $this->style = $style ?? new Circular(['%s',]); |
|
19 | 11 | $this->update($percent); |
|
20 | 11 | } |
|
21 | |||
22 | /** |
||
23 | * @param float $percent |
||
24 | */ |
||
25 | 11 | protected function update(float $percent): void |
|
30 | 11 | } |
|
31 | |||
32 | /** |
||
33 | * @param float $percent |
||
34 | */ |
||
35 | 10 | public function setProgress(float $percent): void |
|
38 | 10 | } |
|
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 11 | protected function getCurrentFrame(): string |
|
46 | } |
||
47 | } |
||
48 |