src/Objects/Membership.php 1 location
|
@@ 132-138 (lines=7) @@
|
| 129 |
|
return ($when >= $this->startDate && $when <= $this->endDate); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
public function equals($other) |
| 133 |
|
{ |
| 134 |
|
if (is_object($other) && get_class($other) == get_class($this)) { |
| 135 |
|
return $this->data == $other->data; |
| 136 |
|
} |
| 137 |
|
// TODO: Throw a custom exception here |
| 138 |
|
throw new \BadMethodCallException; |
| 139 |
|
} |
| 140 |
|
} |
| 141 |
|
|
src/Objects/PopoloObject.php 1 location
|
@@ 141-147 (lines=7) @@
|
| 138 |
|
return (count($contactDetailValues) > 0) ? $contactDetailValues[0] : null; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
public function equals($other) |
| 142 |
|
{ |
| 143 |
|
if (is_object($other) && get_class($other) == get_class($this)) { |
| 144 |
|
return $this->id == $other->id; |
| 145 |
|
} |
| 146 |
|
// TODO: Throw a custom exception here |
| 147 |
|
throw new \BadMethodCallException; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
public function getRelatedObjectArr($popoloArray) |