| Conditions | 5 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function sameAs(ValueObjectInterface $other) |
||
| 36 | { |
||
| 37 | if (!$other instanceof Address) { |
||
| 38 | return false; |
||
| 39 | } |
||
| 40 | |||
| 41 | if ( |
||
| 42 | $this->getNumber() == $other->getNumber() |
||
| 43 | && $this->getStreet() == $other->getStreet() |
||
| 44 | && $this->getZipCode() == $other->getZipCode() |
||
| 45 | ) { |
||
| 46 | return true; |
||
| 47 | } |
||
| 48 | return false; |
||
| 49 | } |
||
| 50 | } |