EventSituationProvider::getForgetArgs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\Plugins\WatchingStrategies\Events;
4
5
use Imanghafoori\HeyMan\Contracts\ForgettableSituation;
6
7
class EventSituationProvider implements ForgettableSituation
8
{
9 121
    public function getListener()
10
    {
11 121
        return EventListeners::class;
12
    }
13
14 121
    public function getSituationProvider()
15
    {
16 121
        return EventSituations::class;
17
    }
18
19 121
    public function getForgetKey()
20
    {
21 121
        return 'eventChecks';
22
    }
23
24 121
    public function getMethods()
25
    {
26
        return [
27 121
            'whenEventHappens',
28
            'whenYouReachCheckPoint',
29
        ];
30
    }
31
32 14
    public static function getForgetMethods()
33
    {
34 14
        return ['aboutEvent'];
35
    }
36
37 2
    public static function getForgetArgs($method, $args)
38
    {
39 2
        return [EventListeners::class, $args];
40
    }
41
}
42