Passed
Push — develop ( 30dd04...761131 )
by Jens
07:47
created

CartValue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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\ShippingMethod;
7
8
use Commercetools\Core\Model\Common\Money;
9
10
/**
11
 * @package Commercetools\Core\Model\ShippingMethod
12
 * @link https://dev.commercetools.com/http-api-projects-shippingMethods.html#cartvalue
13
 * @method string getType()
14
 * @method CartValue setType(string $type = null)
15
 * @method int getMinimumCentAmount()
16
 * @method CartValue setMinimumCentAmount(int $minimumCentAmount = null)
17
 * @method Money getPrice()
18
 * @method CartValue setPrice(Money $price = null)
19
 * @method bool getIsMatching()
20
 * @method CartValue setIsMatching(bool $isMatching = null)
21
 */
22
class CartValue extends ShippingRatePriceTier
23
{
24
    const INPUT_TYPE = 'CartValue';
25
26 2
    public function fieldDefinitions()
27
    {
28
        return [
29 2
            'type' => [static::TYPE => 'string'],
30 2
            'minimumCentAmount' => [static::TYPE => 'int'],
31 2
            'price' => [static::TYPE => Money::class],
32 2
            'isMatching' => [static::TYPE => 'bool']
33
        ];
34
    }
35
}
36