app/Models/Task/Base/Task.php 1 location
|
@@ 193-208 (lines=16) @@
|
| 190 |
|
* @param mixed $obj The object to compare to. |
| 191 |
|
* @return boolean Whether equal to the object specified. |
| 192 |
|
*/ |
| 193 |
|
public function equals($obj) |
| 194 |
|
{ |
| 195 |
|
if (!$obj instanceof static) { |
| 196 |
|
return false; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
if ($this === $obj) { |
| 200 |
|
return true; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) { |
| 204 |
|
return false; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
return $this->getPrimaryKey() === $obj->getPrimaryKey(); |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
/** |
| 211 |
|
* Get the associative array of the virtual columns in this object |
app/Models/User/Base/User.php 1 location
|
@@ 217-232 (lines=16) @@
|
| 214 |
|
* @param mixed $obj The object to compare to. |
| 215 |
|
* @return boolean Whether equal to the object specified. |
| 216 |
|
*/ |
| 217 |
|
public function equals($obj) |
| 218 |
|
{ |
| 219 |
|
if (!$obj instanceof static) { |
| 220 |
|
return false; |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
if ($this === $obj) { |
| 224 |
|
return true; |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) { |
| 228 |
|
return false; |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
return $this->getPrimaryKey() === $obj->getPrimaryKey(); |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
/** |
| 235 |
|
* Get the associative array of the virtual columns in this object |