From dfa0dc42bd703ac0ac9f9e3a386e59fe5f1f0ff9 Mon Sep 17 00:00:00 2001 From: Leonard LEUNG CHONG WO Date: Fri, 15 Sep 2017 15:23:10 +0200 Subject: [PATCH] [FEATURE#56754] ajout du champs message --- src/Conversation.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Conversation.php b/src/Conversation.php index 572211b..9d47957 100644 --- a/src/Conversation.php +++ b/src/Conversation.php @@ -28,6 +28,9 @@ class Conversation implements \JsonSerializable /* @var array $messages */ private $messages; + /* @var array $message */ + private $message; + /* @var array $last_message */ private $last_message; @@ -38,6 +41,7 @@ public function __construct() { $this->acls = []; $this->messages = []; + $this->message = []; $this->save_actions[] = [ "method" => "post", "route" => "/conversations", @@ -263,6 +267,16 @@ public function getMessages() return $this->messages; } + /** + * Get conversation message + * + * @return array + */ + public function getMessage() + { + return $this->message; + } + /** * Set conversation messages *