Added getName() to channels
This commit is contained in:
parent
8a3e892280
commit
c85ec38452
|
|
@ -21,6 +21,11 @@ class Channel
|
|||
$this->channelName = $channelName;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->channelName;
|
||||
}
|
||||
|
||||
public function hasConnections(): bool
|
||||
{
|
||||
return count($this->subscribedConnections) > 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue