1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-24 22:00:09 +00:00
Tims-Chat/file/lib/system/command/ICommand.class.php

55 lines
1.0 KiB
PHP
Raw Normal View History

<?php
namespace chat\system\command;
/**
* Interface for chat-commands.
*
* @author Tim Düsterhus
2014-02-27 22:05:09 +00:00
* @copyright 2010-2014 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
2013-01-19 19:36:40 +00:00
* @package be.bastelstu.chat
2012-03-24 21:39:26 +00:00
* @subpackage system.chat.command
*/
interface ICommand {
2012-06-04 19:22:14 +00:00
/**
2013-01-09 20:34:30 +00:00
* Setting is forced to be disabled.
2012-06-04 19:22:14 +00:00
*
* @var integer
*/
2013-01-09 20:34:30 +00:00
const SETTING_OFF = 0;
2012-06-04 19:22:14 +00:00
/**
2013-01-09 20:34:30 +00:00
* Setting is forced to be enabled.
2012-06-04 19:22:14 +00:00
*
* @var integer
*/
2013-01-09 20:34:30 +00:00
const SETTING_ON = 1;
2012-06-04 19:22:14 +00:00
/**
2013-01-09 20:34:30 +00:00
* The user may decide whether this setting is on or off.
2012-06-04 19:22:14 +00:00
*
* @var integer
*/
2013-01-09 20:34:30 +00:00
const SETTING_USER = 2;
2012-06-04 19:22:14 +00:00
/**
* Returns the message-type for this command.
*/
public function getType();
2012-06-04 19:22:14 +00:00
/**
* Returns the message-text for this command.
*/
public function getMessage();
2012-06-04 19:22:14 +00:00
/**
* Returns additionalData to be saved within database
*/
public function getAdditionalData();
2012-06-04 19:22:14 +00:00
/**
* Returns the receiver for this command.
*/
public function getReceiver();
}