callback = $callback; return $this; } /** * Setzt die maximale Streaming-Dauer * * @param int $seconds Maximale Dauer in Sekunden (0 = unbegrenzt) */ public function setMaxDuration(int $seconds): self { $this->maxDuration = $seconds; return $this; } /** * Setzt das Intervall für Heartbeats * * @param int $seconds Intervall in Sekunden */ public function setHeartbeatInterval(int $seconds): self { $this->heartbeatInterval = $seconds; return $this; } /** * Gibt den Callback zurück */ public function getCallback(): ?callable { return $this->callback; } /** * Gibt die maximale Streaming-Dauer zurück */ public function getMaxDuration(): int { return $this->maxDuration; } /** * Gibt das Heartbeat-Intervall zurück */ public function getHeartbeatInterval(): int { return $this->heartbeatInterval; } }