name = $name instanceof HasBroadcastChannel ? $name->broadcastChannel() : $name; } /** * Convert the channel instance to a string. * * @return string */ public function __toString() { return $this->name; } }