Skip to content

Commit

Permalink
Merge pull request #31 from Leosten/feature/56754
Browse files Browse the repository at this point in the history
[FEATURE#56754] Ajout du champs message
  • Loading branch information
Guillaume Dubost authored Sep 15, 2017
2 parents 1bf00ce + dfa0dc4 commit 181eb41
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -38,6 +41,7 @@ public function __construct()
{
$this->acls = [];
$this->messages = [];
$this->message = [];
$this->save_actions[] = [
"method" => "post",
"route" => "/conversations",
Expand Down Expand Up @@ -263,6 +267,16 @@ public function getMessages()
return $this->messages;
}

/**
* Get conversation message
*
* @return array
*/
public function getMessage()
{
return $this->message;
}

/**
* Set conversation messages
*
Expand Down

0 comments on commit 181eb41

Please sign in to comment.