| @@ 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 |
|
| @@ 165-173 (lines=9) @@ | ||
| 162 | * @param mixed $other |
|
| 163 | * @return bool |
|
| 164 | */ |
|
| 165 | public function equals($other) |
|
| 166 | { |
|
| 167 | if ($this === $other) { |
|
| 168 | return true; |
|
| 169 | } |
|
| 170 | ||
| 171 | return $other instanceof self |
|
| 172 | && $this->value === $other->value; |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * @return string |
|