| @@ 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 |
|
| @@ 220-228 (lines=9) @@ | ||
| 217 | * @param mixed $other |
|
| 218 | * @return bool |
|
| 219 | */ |
|
| 220 | public function equals($other) |
|
| 221 | { |
|
| 222 | if ($this === $other) { |
|
| 223 | return true; |
|
| 224 | } |
|
| 225 | ||
| 226 | return $other instanceof self |
|
| 227 | && $this->value === $other->value; |
|
| 228 | } |
|
| 229 | ||
| 230 | /** |
|
| 231 | * @return string |
|