FML Update

This commit is contained in:
Steffen Schröder
2014-06-21 03:18:21 +02:00
parent 816ff486ef
commit c8d599189c
107 changed files with 2484 additions and 3099 deletions

View File

@ -11,38 +11,37 @@ namespace FML\ManiaCode;
*/
class ShowMessage implements Element {
/*
* Protected Properties
* Protected properties
*/
protected $tagName = 'show_message';
protected $message = '';
protected $message = null;
/**
* Create a new ShowMessage Element
* Create a new ShowMessage object
*
* @param string $message (optional) Message Text
* @return \FML\ManiaCode\ShowMessage
* @param string $message (optional) Message text
* @return \FML\ManiaCode\ShowMessage|static
*/
public static function create($message = null) {
$showMessage = new ShowMessage($message);
return $showMessage;
return new static($message);
}
/**
* Construct a new ShowMessage Element
* Construct a new ShowMessage object
*
* @param string $message (optional) Message Text
* @param string $message (optional) Message text
*/
public function __construct($message = null) {
if ($message !== null) {
if (!is_null($message)) {
$this->setMessage($message);
}
}
/**
* Set the displayed Message Text
* Set the message text
*
* @param string $message Message Text
* @return \FML\ManiaCode\ShowMessage
* @param string $message Message text
* @return \FML\ManiaCode\ShowMessage|static
*/
public function setMessage($message) {
$this->message = (string)$message;