Completed
Push — develop ( 046464...9a0cd6 )
by Jens
13:20
created

PaymentMethodInfo::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 5
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
use Commercetools\Core\Model\Common\LocalizedString;
10
11
/**
12
 * @package Commercetools\Core\Model\Payment
13
 * @link https://dev.commercetools.com/http-api-projects-payments.html#paymentMethodInfo
14
 * @method string getPaymentInterface()
15
 * @method PaymentMethodInfo setPaymentInterface(string $paymentInterface = null)
16
 * @method string getMethod()
17
 * @method PaymentMethodInfo setMethod(string $method = null)
18
 * @method LocalizedString getName()
19
 * @method PaymentMethodInfo setName(LocalizedString $name = null)
20
 */
21
class PaymentMethodInfo extends JsonObject
22
{
23 2
    public function fieldDefinitions()
24
    {
25
        return [
26 2
            'paymentInterface' => [static::TYPE => 'string'],
27 2
            'method' => [static::TYPE => 'string'],
28 2
            'name' => [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedString'],
29 2
        ];
30
    }
31
}
32