| Conditions | 5 |
| Paths | 5 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function equals(UserInterface $user) |
||
| 56 | { |
||
| 57 | if (!$user instanceof self) { |
||
| 58 | return false; |
||
| 59 | } |
||
| 60 | |||
| 61 | if ($this->password !== $user->getPassword()) { |
||
| 62 | return false; |
||
| 63 | } |
||
| 64 | |||
| 65 | if ($this->getSalt() !== $user->getSalt()) { |
||
| 66 | return false; |
||
| 67 | } |
||
| 68 | |||
| 69 | if ($this->username !== $user->getUsername()) { |
||
| 70 | return false; |
||
| 71 | } |
||
| 72 | |||
| 73 | return true; |
||
| 74 | } |
||
| 75 | } |
||
| 76 |