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

MissingTaxRateForCountryError::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
c 0
b 0
f 0
ccs 0
cts 6
cp 0
rs 10
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 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