| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class DKIMDomainSubscriber implements EventSubscriber |
||
| 20 | { |
||
| 21 | private $manager; |
||
| 22 | |||
| 23 | public function __construct(Manager $manager) |
||
| 24 | { |
||
| 25 | $this->manager = $manager; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getSubscribedEvents(): array |
||
| 29 | { |
||
| 30 | return [ |
||
| 31 | Events::postUpdate, |
||
| 32 | Events::postPersist, |
||
| 33 | Events::postRemove, |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function postUpdate(LifecycleEventArgs $args): void |
||
| 40 | } |
||
| 41 | |||
| 42 | public function postPersist(LifecycleEventArgs $args): void |
||
| 45 | } |
||
| 46 | |||
| 47 | public function postRemove(LifecycleEventArgs $args): void |
||
| 48 | { |
||
| 49 | $this->doUpdate($args); |
||
| 50 | } |
||
| 51 | |||
| 52 | private function doUpdate(LifecycleEventArgs $args): void |
||
| 58 | } |
||
| 59 | } |
||
| 60 | } |
||
| 61 |