| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class ProtectedReferencesDoctrineSubscriber implements EventSubscriber { |
||
| 20 | /** |
||
| 21 | * @var ProtectedReferencesChecker |
||
| 22 | */ |
||
| 23 | private $checker; |
||
| 24 | |||
| 25 | public function __construct(ProtectedReferencesChecker $checker) { |
||
| 26 | $this->checker = $checker; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getSubscribedEvents() { |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param LifecycleEventArgs $args |
||
| 37 | * @throws ProtectedReferenceException |
||
| 38 | * @throws \Doctrine\ORM\NoResultException |
||
| 39 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
| 40 | */ |
||
| 41 | public function preRemove(LifecycleEventArgs $args) { |
||
| 45 |