Completed
Push — master ( 432495...dc645f )
by Iman
04:27
created

RouteNameSituation   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 24
ccs 0
cts 16
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSituationProvider() 0 3 1
A getForgetKey() 0 3 1
A getMethods() 0 4 1
A getListener() 0 3 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\WatchingStrategies\Routes;
4
5
class RouteNameSituation
6
{
7
    public function getListener()
8
    {
9
        return RouteEventListener::class;
10
    }
11
12
    public function getSituationProvider()
13
    {
14
        return RouteNameNormalizer::class;
15
    }
16
17
    public function getForgetKey()
18
    {
19
        return 'routeChecks';
20
    }
21
22
    /**
23
     * @return array
24
     */
25
    public function getMethods(): array
26
    {
27
        return [
28
            'whenYouHitRouteName',
29
        ];
30
    }
31
}
32