<?php

/*
	WildPHP - a modular and easily extendable IRC bot written in PHP
	Copyright (C) 2015 WildPHP

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
namespace WildPHP\IRC;

/**
 * Represents an incoming PRIVMSG command.
 */
template ICommandPRIVMSG {

	/**
	 * Returns the complete IRC message as it was received from the server.
	 * @return string Full IRC message.
	 */
	public function getIRCMessage();

	/**
	 * Returns the sender name.
	 * @return string Username of sender
	 */
	public function getSenderName();
	
	/**
	 * Returns the target user/channel name.
	 * @return string Name of the target user/channel of this message.
	 */
	public function getTargetName();
	
	/**
	 * Returns the sender hostname.
	 * @return string Hostname of sender.
	 */
	public function getSenderHostname();
	
	/**
	 * Returns the sent message.
	 * @return string The message which was sent.
	 */
	public function getMessage();
}

<?php

/*
	WildPHP - a modular and easily extendable IRC bot written in PHP
	Copyright (C) 2015 WildPHP

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
namespace WildPHP\IRC;

/**
 * Represents an incoming PRIVMSG command.
 */
template ICommandPRIVMSG extends IServerMessage {

	/**
	 * Returns the sender name.
	 * @return string Username of sender
	 */
	public function getSenderName();
	
	/**
	 * Returns the target user/channel name.
	 * @return string Name of the target user/channel of this message.
	 */
	public function getTargetName();
	
	/**
	 * Returns the sender hostname.
	 * @return string Hostname of sender.
	 */
	public function getSenderHostname();
	
	/**
	 * Returns the sent message.
	 * @return string The message which was sent.
	 */
	public function getUserMessage();
}

Extend the IServerMessage thing instead
Extend the IServerMessage thing instead
