for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mailgun\Resource\Api\Webhook;
use Mailgun\Resource\ApiResponse;
/**
* @author Tobias Nyholm <[email protected]>
*/
class ShowResponse implements ApiResponse
{
* @var array
private $webhook = [];
* @param array $webhook
public function __construct(array $webhook)
$this->webhook = $webhook;
}
* @param array $data
*
* @return ShowResponse
public static function create(array $data)
$webhook = [];
if (isset($data['webhook'])) {
$webhook = $data['webhook'];
return new self($webhook);
* @return string|null
public function getWebhookUrl()
if (isset($this->webhook['url'])) {
return $this->webhook['url'];