16ff75eb1d
[TASK] Removed all the protocol handlers. [TASK] Clients are no longer part of the SocketFramework itself. [TASK] The Framework provides an "interface" to external clients - the ClientDispatcher. [TASK] Added the Core package and added a better ClassLoader. [TASK] Created a bootstrap module to include in other projects. [TASK] Cleaned up comments, reformatted them.
144 lines
2.1 KiB
PHP
144 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* ContentObject for IRC Protocol
|
|
* @author JPT
|
|
* @package Protocol
|
|
*/
|
|
class Protocol_IrcProtocolContentObject extends Protocol_AbstractProtocolContentObject {
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $sender;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $command;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $params;
|
|
|
|
/**
|
|
* Contains a user or the channel a command is addressed to.
|
|
* @var string
|
|
*/
|
|
protected $target;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $message;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $subject;
|
|
|
|
|
|
/**
|
|
* Sets sender.
|
|
* @param string $sender
|
|
* @return void
|
|
*/
|
|
public function setSender($sender) {
|
|
$this->sender = $sender;
|
|
}
|
|
|
|
/**
|
|
* Gets sender.
|
|
* @return string
|
|
*/
|
|
public function getSender() {
|
|
return $this->sender;
|
|
}
|
|
|
|
/**
|
|
* Sets command.
|
|
* @param string $command
|
|
* @return void
|
|
*/
|
|
public function setCommand($command) {
|
|
$this->command = $command;
|
|
}
|
|
|
|
/**
|
|
* Gets command.
|
|
* @return string
|
|
*/
|
|
public function getCommand() {
|
|
return $this->command;
|
|
}
|
|
|
|
/**
|
|
* Sets params.
|
|
* @param string $params
|
|
* @return void
|
|
*/
|
|
public function setParams($params) {
|
|
$this->params = $params;
|
|
}
|
|
|
|
/**
|
|
* Gets params.
|
|
* @return string
|
|
*/
|
|
public function getParams() {
|
|
return $this->params;
|
|
}
|
|
|
|
/**
|
|
* Sets target.
|
|
* @param string $target
|
|
* @return void
|
|
*/
|
|
public function setTarget($target) {
|
|
$this->target = $target;
|
|
}
|
|
|
|
/**
|
|
* Gets target.
|
|
* @return string
|
|
*/
|
|
public function getTarget() {
|
|
return $this->target;
|
|
}
|
|
|
|
/**
|
|
* Sets message.
|
|
* @param string $message
|
|
* @return void
|
|
*/
|
|
public function setMessage($message) {
|
|
$this->message = $message;
|
|
}
|
|
|
|
/**
|
|
* Gets message.
|
|
* @return string
|
|
*/
|
|
public function getMessage() {
|
|
return $this->message;
|
|
}
|
|
|
|
/**
|
|
* Sets subject.
|
|
* @param string $subject
|
|
* @return void
|
|
*/
|
|
public function setSubject($subject) {
|
|
$this->subject = $subject;
|
|
}
|
|
|
|
/**
|
|
* Gets subject.
|
|
* @return string
|
|
*/
|
|
public function getSubject() {
|
|
return $this->subject;
|
|
}
|
|
|
|
}
|
|
?>
|