SymfonyProgressBar::advance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace JMGQ\AStar\Benchmark;
4
5
use Symfony\Component\Console\Helper\ProgressBar;
6
7
class SymfonyProgressBar implements ProgressBarInterface
8
{
9 5
    public function __construct(private ProgressBar $progressBar)
10
    {
11 5
    }
12
13 2
    public function start(int $numberOfSteps): void
14
    {
15 2
        $this->progressBar->start($numberOfSteps);
16 2
    }
17
18 2
    public function advance(): void
19
    {
20 2
        $this->progressBar->advance();
21 2
    }
22
23 2
    public function finish(): void
24
    {
25 2
        $this->progressBar->finish();
26 2
    }
27
}
28