Passed
Pull Request — master (#74)
by Dave
02:04
created

ResultsParserStubIdentifier   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A getCode() 0 3 1
A getToolCommand() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Tests\TestDoubles;
6
7
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\ResultsParser\Identifier;
8
9
class ResultsParserStubIdentifier implements Identifier
10
{
11
    public const CODE = 'results-parser-stub';
12
13
    public function getCode(): string
14
    {
15
        return self::CODE;
16
    }
17
18
    public function getDescription(): string
19
    {
20
        return 'description of '.self::CODE;
21
    }
22
23
    public function getToolCommand(): string
24
    {
25
        return 'tool';
26
    }
27
}
28