mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-24 22:00:09 +00:00
33 lines
663 B
PHP
33 lines
663 B
PHP
<?php
|
|
namespace chat\system\command;
|
|
|
|
/**
|
|
* Thrown when a command is not found.
|
|
*
|
|
* @author Tim Düsterhus
|
|
* @copyright 2010-2014 Tim Düsterhus
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
* @package be.bastelstu.chat
|
|
* @subpackage system.chat.command
|
|
*/
|
|
class NotFoundException extends \Exception {
|
|
/**
|
|
* given command
|
|
* @var string
|
|
*/
|
|
private $command = '';
|
|
|
|
public function __construct($command) {
|
|
$this->command = $command;
|
|
}
|
|
|
|
/**
|
|
* Returns the given command
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCommand() {
|
|
return $this->command;
|
|
}
|
|
}
|