Hoa central
Node.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Irc;
38 
39 use Hoa\Socket;
40 
49 class Node extends Socket\Node
50 {
56  protected $_joined = false;
57 
63  protected $_username = null;
64 
70  protected $_channel = null;
71 
72 
73 
80  public function setJoined($joined)
81  {
82  $old = $this->_joined;
83  $this->_joined = $joined;
84 
85  return $old;
86  }
87 
93  public function hasJoined()
94  {
95  return $this->_joined;
96  }
97 
104  public function setUsername($username)
105  {
106  $old = $this->_username;
107  $this->_username = $username;
108 
109  return $old;
110  }
111 
117  public function getUsername()
118  {
119  return $this->_username;
120  }
121 
128  public function setChannel($channel)
129  {
130  $old = $this->_channel;
131  $this->_channel = $channel;
132 
133  return $old;
134  }
135 
141  public function getChannel()
142  {
143  return $this->_channel;
144  }
145 }
getUsername()
Definition: Node.php:117
setChannel($channel)
Definition: Node.php:128
setUsername($username)
Definition: Node.php:104
hasJoined()
Definition: Node.php:93
getChannel()
Definition: Node.php:141
setJoined($joined)
Definition: Node.php:80