Skip to content

Commit 05d85f2

Browse files
Merge pull request #42 from fernandobandeira/patch-1
Add toString to result
2 parents 2771c70 + 6bbab10 commit 05d85f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Result.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,14 @@ protected function removeUnallowedRelationsFromResponse($response, $allowedRelat
283283

284284
return $response;
285285
}
286+
287+
/**
288+
* Convert the result to its string representation.
289+
*
290+
* @return string
291+
*/
292+
public function __toString()
293+
{
294+
return $this->getResponse()->__toString();
295+
}
286296
}

0 commit comments

Comments
 (0)