Added getName() to channels

This commit is contained in:
rennokki 2020-09-19 08:50:04 +00:00 committed by GitHub
parent 8a3e892280
commit c85ec38452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ class Channel
$this->channelName = $channelName; $this->channelName = $channelName;
} }
public function getName(): string
{
return $this->channelName;
}
public function hasConnections(): bool public function hasConnections(): bool
{ {
return count($this->subscribedConnections) > 0; return count($this->subscribedConnections) > 0;