Passed
Push — master ( 6e2a06...da0795 )
by Jens
14:26
created

MissingTaxRateForCountryError   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 8 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 MissingTaxRateForCountryError setCode(string $code = null)
12
 * @method string getMessage()
13
 * @method MissingTaxRateForCountryError setMessage(string $message = null)
14
 * @method string getTaxCategoryId()
15
 * @method MissingTaxRateForCountryError setTaxCategoryId(string $taxCategoryId = null)
16
 * @method string getCountry()
17
 * @method MissingTaxRateForCountryError setCountry(string $country = null)
18
 * @method string getState()
19
 * @method MissingTaxRateForCountryError setState(string $state = null)
20
 */
21
class MissingTaxRateForCountryError extends ApiError
22
{
23
    const CODE = 'MissingTaxRateForCountry';
24
25
    public function fieldDefinitions()
26
    {
27
        $definitions = parent::fieldDefinitions();
28
        $definitions['taxCategoryId'] = [static::TYPE => 'string'];
29
        $definitions['country'] = [static::TYPE => 'string'];
30
        $definitions['state'] = [static::TYPE => 'string'];
31
32
        return $definitions;
33
    }
34
}
35