| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function update(float $dt = null): IFrame |
||
| 25 | { |
||
| 26 | if ($this->progressValue->isFinished()) { |
||
| 27 | if ($this->finishedDelay < 0) { |
||
| 28 | return FrameFactory::createEmpty(); |
||
| 29 | } |
||
| 30 | $this->finishedDelay -= $dt ?? 0.0; |
||
| 31 | } |
||
| 32 | $v = sprintf( |
||
| 33 | $this->format, |
||
| 34 | $this->progressValue->getValue() * 100 |
||
| 35 | ); |
||
| 36 | return |
||
| 37 | FrameFactory::create($v); |
||
| 38 | } |
||
| 40 |