| Conditions | 5 |
| Paths | 5 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 97 | public function isEqualTo(UserInterface $user) |
||
| 98 | { |
||
| 99 | if (!$user instanceof MajimaUser) { |
||
| 100 | return false; |
||
| 101 | } |
||
| 102 | |||
| 103 | if ($this->password !== $user->getPassword()) { |
||
| 104 | return false; |
||
| 105 | } |
||
| 106 | |||
| 107 | if ($this->salt !== $user->getSalt()) { |
||
| 108 | return false; |
||
| 109 | } |
||
| 110 | |||
| 111 | if ($this->username !== $user->getUsername()) { |
||
| 112 | return false; |
||
| 113 | } |
||
| 114 | |||
| 115 | return true; |
||
| 116 | } |
||
| 117 | } |