| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait Interact |
||
| 10 | { |
||
| 11 | public function interaction(array $interactions, int $pageId, array $doneValue = []):Interaction |
||
| 17 | } |
||
| 18 | |||
| 19 | public function addInteraction(array $interactions, int $pageId, array $doneValue = []) |
||
| 20 | { |
||
| 21 | $interaction = $this->interaction($interactions, $pageId, $doneValue); |
||
| 22 | $this->interactionRepository->save($this, $interaction); |
||
| 23 | event(new InteractionOnPage($pageId)); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function updateInteraction(Interaction $interaction, array $newInteractions, array $doneValue = []) |
||
| 31 | } |
||
| 32 | } |
||
| 33 |