ShippingGoodsPaymentResponse   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setResult() 0 3 1
A setCall() 0 3 1
1
<?php
2
3
/**
4
 * PHP version 5.4 and 8
5
 *
6
 * @category  ResponseEntity
7
 * @package   Payever\Payments
8
 * @author    payever GmbH <[email protected]>
9
 * @author    Andrey Puhovsky <[email protected]>
10
 * @copyright 2017-2021 payever GmbH
11
 * @license   MIT <https://opensource.org/licenses/MIT>
12
 * @link      https://docs.payever.org/shopsystems/api/getting-started
13
 */
14
15
namespace Payever\ExternalIntegration\Payments\Http\ResponseEntity;
16
17
use Payever\ExternalIntegration\Core\Http\ResponseEntity;
18
use Payever\ExternalIntegration\Payments\Http\MessageEntity\PaymentCallEntity;
19
use Payever\ExternalIntegration\Payments\Http\MessageEntity\ShippingGoodsPaymentResultEntity;
20
21
/**
22
 * This class represents Shipping Goods Payment ResponseInterface Entity
23
 */
24
class ShippingGoodsPaymentResponse extends ResponseEntity
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function setCall($call)
30
    {
31
        $this->call = new PaymentCallEntity($call);
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function setResult($result)
38
    {
39
        $this->result = new ShippingGoodsPaymentResultEntity($result);
40
    }
41
}
42