From 21dd3acc95de571833e12bfd80177c70878e3fd7 Mon Sep 17 00:00:00 2001 From: Denis Mosolov Date: Tue, 14 Apr 2026 12:34:46 +0000 Subject: [PATCH] Add setType method to SetChannelMetadata Because `->meta(['type' => 'some type'])` is deprecated --- .../Endpoints/Objects/Channel/SetChannelMetadata.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/PubNub/Endpoints/Objects/Channel/SetChannelMetadata.php b/src/PubNub/Endpoints/Objects/Channel/SetChannelMetadata.php index ad27625b..c08265e9 100644 --- a/src/PubNub/Endpoints/Objects/Channel/SetChannelMetadata.php +++ b/src/PubNub/Endpoints/Objects/Channel/SetChannelMetadata.php @@ -76,6 +76,16 @@ public function setCustom($custom): self return $this; } + /** + * @param string $type + * @return $this + */ + public function setType($type): self + { + $this->meta['type'] = $type; + return $this; + } + /** * @throws PubNubValidationException */