Passed
Push — master ( 056350...65484c )
by Satoshi
05:02
created

NullObserver   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A end() 0 3 1
A notifyResolveDependencyError() 0 3 1
A update() 0 3 1
A notifyAnalyzeFileError() 0 3 1
A notifyResolvePhpDocError() 0 3 1
A start() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace DependencyAnalyzer\DependencyDumper;
5
6
use DependencyAnalyzer\DependencyGraph\FullyQualifiedStructuralElementName;
7
use DependencyAnalyzer\Exceptions\AnalysedFileException;
8
use DependencyAnalyzer\Exceptions\InvalidFullyQualifiedStructureElementNameException;
9
use DependencyAnalyzer\Exceptions\ResolveDependencyException;
10
11
class NullObserver implements ObserverInterface
12
{
13
    public function start(int $max): void
14
    {
15
        return;
16
    }
17
18
    public function end(): void
19
    {
20
        return;
21
    }
22
23
    public function update(string $currentFile): void
24
    {
25
        return;
26
    }
27
28
    public function notifyAnalyzeFileError(AnalysedFileException $e): void
29
    {
30
        return;
31
    }
32
33
    public function notifyResolveDependencyError(string $file, ResolveDependencyException $e): void
34
    {
35
        return;
36
    }
37
38
    public function notifyResolvePhpDocError(string $file, FullyQualifiedStructuralElementName $fqsen, InvalidFullyQualifiedStructureElementNameException $e): void
39
    {
40
        return;
41
    }
42
}
43