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

RefundPaymentRequest::__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\RefundPaymentModel;
6
use Korobovn\CloudPayments\Message\Response\InvalidRequestResponse;
7
use Korobovn\CloudPayments\Message\Response\RefundPaymentResponse;
8
use Korobovn\CloudPayments\Message\Strategy\RefundPaymentStrategy;
9
10
/**
11
 * @method RefundPaymentModel getModel()
12
 * @method InvalidRequestResponse|RefundPaymentResponse send()
13
 *
14
 * @see https://developers.cloudpayments.ru/#vozvrat-deneg
15
 */
16
class RefundPaymentRequest extends AbstractRequest
17
{
18
    /** @var string */
19
    protected $url = '/payments/refund';
20
21
    public function __construct()
22
    {
23
        $this->model    = new RefundPaymentModel;
24
        $this->strategy = new RefundPaymentStrategy;
25
    }
26
}
27