*** id: 285a42fa-5fc1-4c34-a383-f233dc120a9b slug: /php/reference/calling/results/play description: The PlayResult object is returned after a play operation is completed. max-toc-depth: 3 ---------------- [relay-event]: /docs/server-sdk/v2/php/reference/event # Relay.Calling.PlayResult This object returned from one of *synchronous* play methods that represents the final result of a playing action. ## Methods ### getEvent Returns the last Relay Event arrived for this operation. **Parameters** *None* **Returns** [`Relay.Event`][relay-event] - Last Relay Event. **Examples** > Start playing an audio file and then grab the last event occurred. ```php playAudio('https://cdn.signalwire.com/default-music/welcome.mp3')->done(function($result) { $event = $result->getEvent(); // Inspect $event->payload .. }); ``` ### isSuccessful Return `true` if the playing has succeeded, `false` otherwise. **Parameters** *None* **Returns** `boolean` - Whether the playing has finished successfully. **Examples** > Start the recording and then check if it has ended successfully. ```php playAudio('https://cdn.signalwire.com/default-music/welcome.mp3')->done(function($result) { if ($result->isSuccessful()) { // Do other things... } }); ```