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

CartClassification   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#cartclassification
13
 * @method string getType()
14
 * @method CartClassification setType(string $type = null)
15
 * @method string getValue()
16
 * @method CartClassification setValue(string $value = null)
17
 * @method Money getPrice()
18
 * @method CartClassification setPrice(Money $price = null)
19
 * @method bool getIsMatching()
20
 * @method CartClassification setIsMatching(bool $isMatching = null)
21
 */
22
class CartClassification extends ShippingRatePriceTier
23
{
24
    const INPUT_TYPE = 'CartClassification';
25
26 2
    public function fieldDefinitions()
27
    {
28
        return [
29 2
            'type' => [static::TYPE => 'string'],
30 2
            'value' => [static::TYPE => 'string'],
31 2
            'price' => [static::TYPE => Money::class],
32 2
            'isMatching' => [static::TYPE => 'bool']
33
        ];
34
    }
35
}
36