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

SubRate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10

1 Method

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