setUsername() публичный Метод

Set the username we will post as.
public setUsername ( string $username )
$username string
Пример #1
0
 /**
  * Create a new message with defaults.
  *
  * @return \Maknz\Slack\Message
  */
 public function createMessage()
 {
     $message = new Message($this);
     $message->setChannel($this->getDefaultChannel());
     $message->setUsername($this->getDefaultUsername());
     $message->setIcon($this->getDefaultIcon());
     $message->setAllowMarkdown($this->getAllowMarkdown());
     $message->setMarkdownInAttachments($this->getMarkdownInAttachments());
     return $message;
 }