| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class ListenerToggler |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var EventManager |
||
| 15 | */ |
||
| 16 | private $eventManager; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $propertyName; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | private $currentListeners; |
||
| 27 | |||
| 28 | 14 | public function __construct(EventManager $eventManager) |
|
| 32 | 14 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @throws \ReflectionException |
||
| 36 | */ |
||
| 37 | 6 | public function disableListeners(): void |
|
| 41 | 6 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @throws \ReflectionException |
||
| 45 | */ |
||
| 46 | 6 | public function enableListeners(): void |
|
| 52 |