Completed
Push — develop ( 79f8cb...57f680 )
by Jens
09:18
created

PaymentInfo::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Payment;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
10
/**
11
 * @package Commercetools\Core\Model\Payment
12
 * @link https://dev.commercetools.com/http-api-projects-orders.html#payment-info
13
 * @method PaymentReferenceCollection getPayments()
14
 * @method PaymentInfo setPayments(PaymentReferenceCollection $payments = null)
15
 */
16
class PaymentInfo extends JsonObject
17
{
18 1
    public function fieldDefinitions()
19
    {
20
        return [
21 1
            'payments' => [static::TYPE => '\Commercetools\Core\Model\Payment\PaymentReferenceCollection'],
22 1
        ];
23
    }
24
}
25