Passed
Push — master ( fba5ec...ac8f64 )
by Ivan
02:15
created

ExactMatch::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Everlution\Navigation\Match\Voter;
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_MATCH, expecting T_STRING on line 5 at column 32
Loading history...
6
7
use Everlution\Navigation\Match\MatchInterface;
8
9
/**
10
 * Class ExactMatch.
11
 *
12
 * @author Ivan Barlog <[email protected]>
13
 */
14
class ExactMatch implements MatchInterface
15
{
16
    /** @var string */
17
    private $value;
18
19
    public function __construct(string $prefix)
20
    {
21
        $this->value = $prefix;
22
    }
23
24
    public function getValue(): string
25
    {
26
        return $this->value;
27
    }
28
}
29