Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait CanMute |
||
6 | { |
||
7 | 4 | public static function mute($events = null) |
|
8 | { |
||
9 | 4 | $instance = new static(); |
|
10 | 4 | resolve(ProxyManager::class)->register($instance, static::normalizeEvents($events)); |
|
11 | 4 | } |
|
12 | |||
13 | 4 | protected static function normalizeEvents($events): array |
|
24 | } |
||
25 | |||
26 | 1 | public static function unmute() |
|
29 | 1 | } |
|
30 | } |
||
31 |