Rev 1118 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1118 | Rev 1121 | ||
---|---|---|---|
Line 209... | Line 209... | ||
209 | * @param $to |
209 | * @param $to |
210 | * @return int|null |
210 | * @return int|null |
211 | */ |
211 | */ |
212 | public function distance($to) { |
212 | public function distance($to) { |
213 | if (!is_object($to)) $to = OIDplusObject::parse($to); |
213 | if (!is_object($to)) $to = OIDplusObject::parse($to); |
- | 214 | if (!$to) return null; |
|
214 | if (!($to instanceof $this)) return null; |
215 | if (!($to instanceof $this)) return null; |
215 | 216 | ||
216 | $a = $to->java; |
217 | $a = $to->java; |
217 | $b = $this->java; |
218 | $b = $this->java; |
218 | 219 |