You are here

public function Channel::__get in Rocket.Chat 8.2

File

modules/rocket_chat_api/src/RocketChat/Element/Channel.php, line 156

Class

Channel

Namespace

Drupal\rocket_chat_api\RocketChat\Element

Code

public function __get($name) {
  switch ($name) {
    default:
      if (isset($this->{$name})) {
        return $this->{$name};
      }
      else {
        return null;
      }
      break;
    case "Channel":
      return $this->Channel;
  }
}