Completed
Push — develop ( 32d182...09288a )
by Jens
08:30
created

PaymentStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 8 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\State\StateReference;
10
11
/**
12
 * @package Commercetools\Core\Model\Payment
13
 * @link https://dev.commercetools.com/http-api-projects-payments.html#paymentStatus
14
 * @method string getInterfaceCode()
15
 * @method PaymentStatus setInterfaceCode(string $interfaceCode = null)
16
 * @method string getInterfaceText()
17
 * @method PaymentStatus setInterfaceText(string $interfaceText = null)
18
 * @method StateReference getState()
19
 * @method PaymentStatus setState(StateReference $state = null)
20
 */
21
class PaymentStatus extends JsonObject
22
{
23 3
    public function fieldDefinitions()
24
    {
25
        return [
26 3
            'interfaceCode' => [static::TYPE => 'string'],
27 3
            'interfaceText' => [static::TYPE => 'string'],
28 3
            'state' => [static::TYPE => '\Commercetools\Core\Model\State\StateReference'],
29
        ];
30
    }
31
}
32