Test Failed
Push — master ( 3eb0e4...9196b6 )
by Ivan
02:13
created

ExactVoter::matches()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Everlution\Navigation\Voter\Exact;
6
7
use Everlution\Navigation\Voter\MatchVoter;
8
9
/**
10
 * Class ExactVoter.
11
 * @author Ivan Barlog <[email protected]>
12
 */
13
class ExactVoter extends MatchVoter
14
{
15
    /**
16
     * @param string $haystack
17
     * @param string $needle
18
     * @return bool
19
     */
20
    public function matches(string $haystack, string $needle): bool
21
    {
22
        return $haystack === $needle;
23
    }
24
}
25