client = $client; return $this; } public function getClient(): IClient { return $this->client; } public function getClientOptions(): array { return $this->clientOptions; } public function setClientOptions(array $clientOptions): self { $this->clientOptions = $clientOptions; return $this; } public function isLocalAddressAllowed(): bool { return $this->localAddressAllowed; } public function setLocalAddressAllowed(bool $allowed): self { $this->localAddressAllowed = $allowed; return $this; } public function jsonSerialize(): array { return array_merge( parent::jsonSerialize(), [ 'clientOptions' => $this->getClientOptions(), 'localAddressAllowed' => $this->isLocalAddressAllowed(), ] ); } }