| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class CancelRequest extends Request |
||
| 15 | { |
||
| 16 | use RequestCommonsTrait; |
||
| 17 | public const API_PATH = '/Payment/v1/Transaction/Cancel'; |
||
| 18 | public const RESPONSE_CLASS = CancelResponse::class; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var TransactionReference |
||
| 22 | * @SerializedName("TransactionReference") |
||
| 23 | */ |
||
| 24 | private $transactionReference; |
||
| 25 | |||
| 26 | public function __construct( |
||
| 27 | RequestConfig $requestConfig, |
||
| 28 | TransactionReference $transactionReference |
||
| 29 | ) { |
||
| 30 | $this->transactionReference = $transactionReference; |
||
| 31 | |||
| 32 | parent::__construct($requestConfig); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getTransactionReference(): TransactionReference |
||
| 36 | { |
||
| 37 | return $this->transactionReference; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function setTransactionReference(TransactionReference $transactionReference): self |
||
| 45 | } |
||
| 46 | |||
| 47 | public function execute(): CancelResponse |
||
| 53 | } |
||
| 54 | } |
||
| 55 |