src/Buttress/IRC/Message/GenericMessage.php 1 location
|
@@ 29-35 (lines=7) @@
|
26 |
|
*/ |
27 |
|
protected $connection; |
28 |
|
|
29 |
|
function __construct($command, $prefix = "", array $params = array(), $connection = null) |
30 |
|
{ |
31 |
|
$this->command = $command; |
32 |
|
$this->connection = $connection; |
33 |
|
$this->params = $params; |
34 |
|
$this->prefix = $prefix; |
35 |
|
} |
36 |
|
|
37 |
|
/** |
38 |
|
* @return ConnectionInterface |
src/Buttress/IRC/Message/PrivmsgMessage.php 1 location
|
@@ 7-13 (lines=7) @@
|
4 |
|
class PrivmsgMessage extends GenericMessage |
5 |
|
{ |
6 |
|
|
7 |
|
public function __construct($prefix, array $params = array(), $connection = null) |
8 |
|
{ |
9 |
|
$this->command = 'PRIVMSG'; |
10 |
|
$this->prefix = $prefix; |
11 |
|
$this->params = $params; |
12 |
|
$this->connection = $connection; |
13 |
|
} |
14 |
|
|
15 |
|
/** |
16 |
|
* @return string |