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

CartClassification::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 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