PlainTextStateDTO   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
ccs 3
cts 7
cp 0.4286
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getProviderName() 0 4 1
A getStateDescription() 0 4 1
1
<?php
2
3
namespace SmartGamma\Behat\PactExtension\Infrastructure\ProviderState;
4
5
class PlainTextStateDTO
6
{
7
    /**
8
     * @var string
9
     */
10
    private $providerName;
11
12
    /**
13
     * @var string
14
     */
15
    private $description;
16
17
    /**
18
     * ProviderState constructor.
19
     *
20
     * @param string $description
21
     */
22 1
    public function __construct(string $providerName, string $description)
23
    {
24 1
        $this->providerName = $providerName;
25 1
        $this->description  = $description;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getProviderName(): string
32
    {
33
        return $this->providerName;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getStateDescription(): string
40
    {
41
        return $this->description;
42
    }
43
}
44