Test Failed
Push — master ( 8f843b...42c6ae )
by Nikolay
03:13
created

CancelPaymentRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Korobovn\CloudPayments\Message\Request;
4
5
use Korobovn\CloudPayments\Message\Request\Model\CancelPaymentModel;
6
use Korobovn\CloudPayments\Message\Response\InvalidRequestResponse;
7
use Korobovn\CloudPayments\Message\Response\SuccessResponse;
8
use Korobovn\CloudPayments\Message\Strategy\SuccessStrategy;
9
10
/**
11
 * @method CancelPaymentModel getModel()
12
 * @method InvalidRequestResponse|SuccessResponse send()
13
 *
14
 * @see https://developers.cloudpayments.ru/#otmena-oplaty
15
 */
16
class CancelPaymentRequest extends AbstractRequest
17
{
18
    /** @var string */
19
    protected $url = '/payments/void';
20
21
    public function __construct()
22
    {
23
        $this->model    = new CancelPaymentModel;
24
        $this->strategy = new SuccessStrategy;
25
    }
26
}
27