public function equals($obj) { if ($obj instanceof OffsetClock) { return $this->baseClock->equals($obj->baseClock) && $this->offset->equals($obj->offset); } return false; }
public function equals($obj) { if ($obj instanceof TickClock) { return $this->baseClock->equals($obj->baseClock) && $this->tickNanos == $obj->tickNanos; } else { return false; } }