Passed
Push — master ( 99eb02...369f6b )
by Iman
02:44
created

RouteSituationProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 12
dl 0
loc 30
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

4 Methods

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