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

CancelPaymentRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
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