Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 9c98271

Browse files
author
mandre42
authored
Merge pull request #6 from mandre42/master
[UPD] add raw attribute in Conversation and Response class
2 parents 5e0dfe4 + 8e2b60d commit 9c98271

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Conversation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function __construct($json)
1414
// var_dump($json);
1515
$response = json_decode($json->body);
1616

17+
$this->raw = $response->results;
1718
$this->replies = $response->results->replies;
1819
$this->action = $response->results->action;
1920
$this->nextActions = $response->results->next_actions;

src/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct($json)
1818
$response = json_decode($json->body);
1919
$this->entities = [];
2020

21+
$this->raw = $response->results;
2122
$this->act = $response->results->act;
2223
$this->type = $response->results->type;
2324
$this->source = $response->results->source;

0 commit comments

Comments
 (0)