now = $now; } public function now(): \DateTimeImmutable { return $this->now; } }; // We can now wrap the object in a clock. $wrappedClock = WrappingClock::wrapping($clock); assert($now->format(DATE_ATOM) === $wrappedClock->now()->format(DATE_ATOM));