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

Get the default username messages will be created for.
public getDefaultUsername ( ) : string
Результат string
Пример #1
0
 public function testCreateMessage()
 {
     $defaults = ['channel' => '#random', 'username' => 'Archer', 'icon' => ':ghost:'];
     $client = new Client('http://fake.endpoint', $defaults);
     $message = $client->createMessage();
     $this->assertInstanceOf('Maknz\\Slack\\Message', $message);
     $this->assertSame($client->getDefaultChannel(), $message->getChannel());
     $this->assertSame($client->getDefaultUsername(), $message->getUsername());
     $this->assertSame($client->getDefaultIcon(), $message->getIcon());
 }
Пример #2
0
 /**
  * Get the default username messages will be created for
  *
  * @return string 
  * @static 
  */
 public static function getDefaultUsername()
 {
     return \Maknz\Slack\Client::getDefaultUsername();
 }