public function jsonSerialize() { return ['hours' => $this->hours, 'minutes' => $this->minutes, 'seconds' => $this->seconds]; }