Test Failed
Push — develop ( 602303...60e207 )
by Jens
08:55
created

PayloadNotIncluded::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 */
4
5
namespace Commercetools\Core\Model\Subscription;
6
7
use Commercetools\Core\Model\Common\JsonObject;
8
9
/**
10
 * @package Commercetools\Core\Model\Subscription
11
 *
12
 * @method string getReason()
13
 * @method PayloadNotIncluded setReason(string $reason = null)
14
 * @method string getPayloadType()
15
 * @method PayloadNotIncluded setPayloadType(string $payloadType = null)
16
 */
17
class PayloadNotIncluded extends JsonObject
18
{
19
    public function fieldDefinitions()
20
    {
21
        return [
22
            'reason' => [static::TYPE => 'string'],
23
            'payloadType' => [static::TYPE => 'string'],
24
        ];
25
    }
26
}
27