Completed
Push — develop ( e4c10e...940e90 )
by Jens
08:29
created

SubRate::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\TaxCategory;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
10
/**
11
 * @package Commercetools\Core\Model\TaxCategory
12
 *
13
 * @method string getName()
14
 * @method SubRate setName(string $name = null)
15
 * @method float getAmount()
16
 * @method SubRate setAmount(float $amount = null)
17
 */
18
class SubRate extends JsonObject
19
{
20 8
    public function fieldDefinitions()
21
    {
22
        return [
23 8
            'name' => [self::TYPE => 'string'],
24 8
            'amount' => [self::TYPE => 'float'],
25
        ];
26
    }
27
}
28