Conditions | 6 |
Paths | 4 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function equals(InteractionComponent $interactionComponent): bool |
||
43 | { |
||
44 | if ($this->id !== $interactionComponent->id) { |
||
45 | return false; |
||
46 | } |
||
47 | |||
48 | if (null !== $this->description xor null !== $interactionComponent->description) { |
||
49 | return false; |
||
50 | } |
||
51 | |||
52 | if (null !== $this->description && null !== $interactionComponent->description && !$this->description->equals($interactionComponent->description)) { |
||
53 | return false; |
||
54 | } |
||
55 | |||
56 | return true; |
||
57 | } |
||
58 | } |
||
59 |