You are here

public function User::__construct in Rocket.Chat 8.2

User constructor.

Parameters

\Drupal\rocket_chat_api\RocketChat\RocketChatStateinterface $state:

null|string $username:

null|string $email:

null|string $name:

File

modules/rocket_chat_api/src/RocketChat/Element/User.php, line 93

Class

User

Namespace

Drupal\rocket_chat_api\RocketChat\Element

Code

public function __construct(RocketChatStateinterface $state, $username = NULL, $email = NULL, $name = NULL) {
  $this->state = $state;
  $this->username = $username;
  $this->email = $email;
  $this->name = $name;
  $this->Logger = Drupal::logger("Rocket Chat API: User");
}