| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 71 | public function removeTrick(Trick $trick): self |
||
| 72 | { |
||
| 73 | if ($this->tricks->contains($trick)) { |
||
| 74 | $this->tricks->removeElement($trick); |
||
| 75 | // set the owning side to null (unless already changed) |
||
| 76 | if ($trick->getCategory() === $this) { |
||
| 77 | $trick->setCategory(null); |
||
| 78 | } |
||
| 79 | } |
||
| 80 | |||
| 81 | return $this; |
||
| 82 | } |
||
| 88 |