ircbot/Classes/Protocol/IrcProtocolContentObject.php
Jan Philipp Timme 03a4dfff71 [TASK] Added the ProtocolHandlerException
[TASK] Started to implement the IRC-Protocol
2010-12-12 21:44:19 +00:00

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;
}
}
?>