X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcontent%2FMessageContent.php;h=5626b549ea65af0d0584627407e15e5124eddea0;hb=204d0df4d2bb8139109253f3da1df42cd455850c;hp=b21c6f4bb3a0f12512677a75dae2c9b8e14f176b;hpb=5410cfccce9b0b84bc909506c9b66d3f27d6dba7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/MessageContent.php b/includes/content/MessageContent.php index b21c6f4bb3..5626b549ea 100644 --- a/includes/content/MessageContent.php +++ b/includes/content/MessageContent.php @@ -80,9 +80,22 @@ class MessageContent extends AbstractContent { /** * Returns the message object, with any parameters already substituted. * + * @deprecated since 1.33 use getMessage() instead. + * * @return Message The message object. */ public function getNativeData() { + return $this->getMessage(); + } + + /** + * Returns the message object, with any parameters already substituted. + * + * @since 1.33 + * + * @return Message The message object. + */ + public function getMessage() { // NOTE: Message objects are mutable. Cloning here makes MessageContent immutable. return clone $this->mMessage; } @@ -131,7 +144,8 @@ class MessageContent extends AbstractContent { * @see Content::copy */ public function copy() { - // MessageContent is immutable (because getNativeData() returns a clone of the Message object) + // MessageContent is immutable (because getNativeData() and getMessage() + // returns a clone of the Message object) return $this; }