Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
53 | public function forgetInteractions(?string $interactionType = null): static |
||
54 | { |
||
55 | if ($interactionType && in_array($interactionType, InteractionTypeEnum::getValuesAsStrings())) { |
||
56 | return $this->forgetInteractionsOfType($interactionType); |
||
57 | } |
||
58 | |||
59 | $this->likes()->delete(); |
||
60 | |||
61 | return $this; |
||
62 | } |
||
64 |