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

RefundPaymentRequest   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\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