Passed
Pull Request — develop (#423)
by nikos
09:13
created

fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
ccs 0
cts 5
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\Error;
6
7
/**
8
 * @package Commercetools\Core\Error
9
 *
10
 * @method string getCode()
11
 * @method InvalidItemShippingDetailsError setCode(string $code = null)
12
 * @method string getMessage()
13
 * @method InvalidItemShippingDetailsError setMessage(string $message = null)
14
 * @method string getSubject()
15
 * @method InvalidItemShippingDetailsError setSubject(string $subject = null)
16
 * @method string getItemId()
17
 * @method InvalidItemShippingDetailsError setItemId(string $itemId = null)
18
 */
19
class InvalidItemShippingDetailsError extends ApiError
20
{
21
    const CODE = 'InvalidItemShippingDetails';
22
23
    public function fieldDefinitions()
24
    {
25
        $definitions = parent::fieldDefinitions();
26
        $definitions['subject'] = [static::TYPE => 'string'];
27
        $definitions['itemId'] = [static::TYPE => 'string'];
28
29
        return $definitions;
30
    }
31
}
32