mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-23 21:50:09 +00:00
50 lines
941 B
PHP
50 lines
941 B
PHP
<?php
|
|
namespace wcf\system\chat\command;
|
|
|
|
/**
|
|
* Interface for chat-commands.
|
|
*
|
|
* @author Tim Düsterhus
|
|
* @copyright 2010-2012 Tim Düsterhus
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
* @package be.bastelstu.wcf.chat
|
|
* @subpackage system.chat.command
|
|
*/
|
|
interface ICommand {
|
|
/**
|
|
* Setting is forced to be disabled.
|
|
*
|
|
* @var integer
|
|
*/
|
|
const SETTING_OFF = 0;
|
|
|
|
/**
|
|
* Setting is forced to be enabled.
|
|
*
|
|
* @var integer
|
|
*/
|
|
const SETTING_ON = 1;
|
|
|
|
/**
|
|
* The user may decide whether this setting is on or off.
|
|
*
|
|
* @var integer
|
|
*/
|
|
const SETTING_USER = 2;
|
|
|
|
/**
|
|
* Returns the message-type for this command.
|
|
*/
|
|
public function getType();
|
|
|
|
/**
|
|
* Returns the message-text for this command.
|
|
*/
|
|
public function getMessage();
|
|
|
|
/**
|
|
* Returns the receiver for this command.
|
|
*/
|
|
public function getReceiver();
|
|
}
|