CustomLineItemsTarget   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 7
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A ofPredicate() 0 3 1
1
<?php
2
/**
3
 * @author @jenschude <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\CartDiscount;
7
8
/**
9
 * @package Commercetools\Core\Model\CartDiscount
10
 *
11
 * @method string getType()
12
 * @method CustomLineItemsTarget setType(string $type = null)
13
 * @method string getPredicate()
14
 * @method CustomLineItemsTarget setPredicate(string $predicate = null)
15
 */
16
class CustomLineItemsTarget extends CartDiscountTarget
17
{
18
    const TARGET_TYPE = 'customLineItems';
19
20
    public static function ofPredicate($predicate, $context = null)
21
    {
22
        return static::of($context)->setPredicate($predicate);
23
    }
24
}
25