Passed
Push — master ( f8ce69...b14078 )
by payever
03:35
created

ListPaymentOptionsWithVariantsResponse::setCall()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * PHP version 5.4
4
 *
5
 * @category  ResponseEntity
6
 * @package   Payever\Payments
7
 * @author    payever GmbH <[email protected]>
8
 * @copyright 2017-2019 payever GmbH
9
 * @license   MIT <https://opensource.org/licenses/MIT>
10
 * @link      https://getpayever.com/shopsystem/
11
 */
12
13
namespace Payever\ExternalIntegration\Payments\Http\ResponseEntity;
14
15
use Payever\ExternalIntegration\Core\Http\ResponseEntity;
16
use Payever\ExternalIntegration\Payments\Http\MessageEntity\ListPaymentOptionsCallEntity;
17
use Payever\ExternalIntegration\Payments\Http\MessageEntity\ListPaymentOptionsVariantsResultEntity;
18
19
/**
20
 * This class represents List Payment Options ResponseInterface Entity
21
 *
22
 * PHP version 5.4
23
 *
24
 * @category  ResponseEntity
25
 * @package   Payever\Payments
26
 * @author    payever GmbH <[email protected]>
27
 * @copyright 2017-2019 payever GmbH
28
 * @license   MIT <https://opensource.org/licenses/MIT>
29
 * @link      https://getpayever.com/shopsystem/
30
 *
31
 * @method array|ListPaymentOptionsVariantsResultEntity[] getResult()
32
 */
33
class ListPaymentOptionsWithVariantsResponse extends ResponseEntity
34
{
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function setCall($call)
39
    {
40
        $this->call = new ListPaymentOptionsCallEntity($call);
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function setResult($result)
47
    {
48
        $this->result = array();
49
50
        foreach ($result as $item) {
51
            $this->result[] = new ListPaymentOptionsVariantsResultEntity($item);
52
        }
53
    }
54
}
55