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

InvalidItemShippingDetailsError   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 11
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 7 1
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