@@ 66-74 (lines=9) @@ | ||
63 | * @param mixed $other |
|
64 | * @return bool |
|
65 | */ |
|
66 | public function equals($other) |
|
67 | { |
|
68 | if ($this === $other) { |
|
69 | return true; |
|
70 | } |
|
71 | ||
72 | return $other instanceof self |
|
73 | && $this->codepoint->equals($other->codepoint); |
|
74 | } |
|
75 | } |
@@ 49-57 (lines=9) @@ | ||
46 | * @param mixed $other |
|
47 | * @return bool |
|
48 | */ |
|
49 | public function equals($other) |
|
50 | { |
|
51 | if ($this === $other) { |
|
52 | return true; |
|
53 | } |
|
54 | ||
55 | return $other instanceof self |
|
56 | && $this->codepoint->equals($other->codepoint); |
|
57 | } |
|
58 | } |