Passed
Push — develop ( 92e1e8...d25e3e )
by Jens
12:17
created

OrderEditPreviewFailure   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 5 1
1
<?php
2
/**
3
 *
4
 */
5
6
namespace Commercetools\Core\Model\OrderEdit;
7
8
use Commercetools\Core\Error\ErrorContainer;
9
10
/**
11
 * @package Commercetools\Core\Model\OrderEdit
12
 *
13
 * @method ErrorContainer getErrors()
14
 * @method OrderEditPreviewFailure setErrors(ErrorContainer $errors = null)
15
 * @method string getType()
16
 * @method OrderEditPreviewFailure setType(string $type = null)
17
 */
18
class OrderEditPreviewFailure extends OrderEditResult
19
{
20
    const ORDER_EDIT_RESULT_TYPE = 'PreviewFailure';
21
22 2
    public function fieldDefinitions()
23
    {
24
        return [
25 2
            'type' => [static::TYPE => 'string'],
26 2
            'errors' => [static::TYPE => ErrorContainer::class]
27
        ];
28
    }
29
}
30