1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Everlution\Navigation\Match\Voter; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
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 |