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

EloquentSituationProvider::getMethods()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\WatchingStrategies\EloquentModels;
4
5
class EloquentSituationProvider
6
{
7 113
    public function getListener()
8
    {
9 113
        return EloquentEventsListener::class;
10
    }
11
12 113
    public function getSituationProvider()
13
    {
14 113
        return EloquentSituations::class;
15
    }
16
17 113
    public function getForgetKey()
18
    {
19 113
        return 'eloquentChecks';
20
    }
21
22 113
    public function getMethods(): array
23
    {
24
        return [
25 113
            'whenYouFetch',
26
            'whenYouCreate',
27
            'whenYouUpdate',
28
            'whenYouSave',
29
            'whenYouDelete',
30
        ];
31
    }
32
}
33