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

PrefixMatch   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 13
rs 10
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 PrefixMatch.
11
 *
12
 * @author Ivan Barlog <[email protected]>
13
 */
14
class PrefixMatch implements MatchInterface
15
{
16
    /** @var string */
17
    private $value;
18
19
    public function __construct(string $value)
20
    {
21
        $this->value = $value;
22
    }
23
24
    public function getValue(): string
25
    {
26
        return $this->value;
27
    }
28
}
29