| Total Complexity | 7 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class SortableInterfaceSubscriber implements EntitySubscriberInterface |
||
| 14 | { |
||
| 15 | private $contentRepository; |
||
| 16 | |||
| 17 | public function __construct( |
||
| 18 | ContentRepository $contentRepository |
||
| 19 | ) |
||
| 20 | { |
||
| 21 | $this->contentRepository = $contentRepository; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | public function getSubscribedEvents(): array |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function supportsEntity($entity = null): bool |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param LifecycleEventArgs $eventArgs |
||
| 41 | * @param SortableInterface $entity |
||
| 42 | */ |
||
| 43 | public function prePersist(LifecycleEventArgs $eventArgs, SortableInterface $entity): void |
||
| 54 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.