| @@ 54-62 (lines=9) @@ | ||
| 51 | * @param mixed $other |
|
| 52 | * @return bool |
|
| 53 | */ |
|
| 54 | public function equals($other) |
|
| 55 | { |
|
| 56 | if ($this === $other) { |
|
| 57 | return true; |
|
| 58 | } |
|
| 59 | ||
| 60 | return $other instanceof static |
|
| 61 | && $other->value === $this->value; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param string $value |
|
| @@ 212-220 (lines=9) @@ | ||
| 209 | * @param mixed $other |
|
| 210 | * @return bool |
|
| 211 | */ |
|
| 212 | public function equals($other) |
|
| 213 | { |
|
| 214 | if ($this === $other) { |
|
| 215 | return true; |
|
| 216 | } |
|
| 217 | ||
| 218 | return $other instanceof self |
|
| 219 | && $this->value === $other->value; |
|
| 220 | } |
|
| 221 | ||
| 222 | /** |
|
| 223 | * @return string |
|