getNick() public méthode

Returns the nick of the user.
public getNick ( ) : string
Résultat string
Exemple #1
0
 /**
  * Returns the channel name if the event occurred in a channel or the 
  * user nick if the event was a private message directed at the bot by a 
  * user. 
  *
  * @return string
  */
 public function getSource()
 {
     if (substr($this->arguments[0], 0, 1) == '#') {
         return $this->arguments[0];
     }
     return $this->hostmask->getNick();
 }
Exemple #2
0
 /**
  * Tests setNick() function for correctly setting nick property.
  * 
  * @return void
  */
 public function testSetNick()
 {
     $this->hostmask->setNick('newnickname');
     $this->assertEquals('newnickname', $this->hostmask->getNick());
 }