Example #1
0
 public function __construct(string $nickname, string $username, string $hostname, string $serverName, string $command, string $params)
 {
     $this->nickname = $nickname;
     $this->username = $username;
     $this->hostname = $hostname;
     $this->serverName = $serverName;
     parent::__construct($command, $params);
 }
Example #2
0
 public function __construct(array $targets, string $text)
 {
     parent::__construct('PRIVMSG', implode(',', $targets) . ' :' . $text);
 }