for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ticketpark\SaferpayJson\Request\PaymentPage;
use JMS\Serializer\Annotation\SerializedName;
use Ticketpark\SaferpayJson\Request\Request;
use Ticketpark\SaferpayJson\Request\RequestCommonsTrait;
use Ticketpark\SaferpayJson\Request\RequestConfig;
use Ticketpark\SaferpayJson\Response\PaymentPage\AssertResponse;
final class AssertRequest extends Request
{
use RequestCommonsTrait;
public const API_PATH = '/Payment/v1/PaymentPage/Assert';
public const RESPONSE_CLASS = AssertResponse::class;
/**
* @var string
* @SerializedName("Token")
*/
private $token;
public function __construct(
RequestConfig $requestConfig,
string $token
) {
$this->token = $token;
parent::__construct($requestConfig);
}
public function getToken(): string
return $this->token;
public function setToken(string $token): self
return $this;
public function execute(): AssertResponse
/** @var AssertResponse $response */
$response = $this->doExecute();
return $response;