Skip to content

Commit 14be398

Browse files
author
Ethan Ransdell
committed
Implement __toString() in Response
1 parent 754a7ee commit 14be398

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Voice/Bxml/Response.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ public function toBxml() {
5050
$doc->appendChild($responseElement);
5151
return str_replace("\n", '', preg_replace($ssmlRegex, "<$1>", $doc->saveXML()));
5252
}
53+
54+
public function __toString()
55+
{
56+
return $this->toBxml();
57+
}
5358
}

0 commit comments

Comments
 (0)