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