Total Complexity | 9 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class NullProgress implements ProgressInterface |
||
16 | { |
||
17 | /** @var Status */ |
||
18 | private $status; |
||
19 | |||
20 | public function __construct(Status $status = null) |
||
21 | { |
||
22 | $this->status = $status ?: Status::make(); |
||
23 | } |
||
24 | |||
25 | public function getStatus(): Status |
||
26 | { |
||
27 | return $this->status; |
||
28 | } |
||
29 | |||
30 | public function increase(string $message = '', $increase = 1): void |
||
31 | { |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function update( |
||
38 | string $message = null, |
||
39 | $value = null, |
||
40 | $total = null, |
||
41 | int $startTime = null, |
||
42 | int $current = null |
||
43 | ): void { |
||
44 | } |
||
45 | |||
46 | public function shouldNotifyChange(Status $current, Status $newStatus): bool |
||
47 | { |
||
48 | return false; |
||
49 | } |
||
50 | |||
51 | public function attach(SplObserver $observer): void |
||
52 | { |
||
53 | } |
||
54 | |||
55 | public function detach(SplObserver $observer): void |
||
56 | { |
||
57 | } |
||
58 | |||
59 | public function notify(): void |
||
61 | } |
||
62 | } |
||
63 |