Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | public function removeProperty(Property $property): self |
||
49 | { |
||
50 | if ($this->properties->contains($property)) { |
||
51 | $this->properties->removeElement($property); |
||
52 | // set the owning side to null (unless already changed) |
||
53 | if ($property->getCategory() === $this) { |
||
54 | $property->setCategory(null); |
||
55 | } |
||
56 | } |
||
57 | |||
58 | return $this; |
||
59 | } |
||
61 |