<?php
namespace XsollaSDKWebhookResponse;
use XsollaSDKWebhookUser;
use XsollaSDKWebhookWebhookResponse;
class UserResponse extends WebhookResponse
{
/**
* @param User $user
*/
public function __construct(User $user)
{
$this->validateStringParameter('User id', $user->getId());
parent::__construct(200, $user->toJson());
}
}