public function withZone(ZoneId $zone) { if ($zone->equals($this->baseClock->getZone())) { // intentional NPE return $this; } return new TickClock($this->baseClock->withZone($zone), $this->tickNanos); }
public function withZone(ZoneId $zone) { if ($zone->equals($this->baseClock->getZone())) { // intentional NPE return $this; } return new OffsetClock($this->baseClock->withZone($zone), $this->offset); }