CustomLineItemsTarget::ofPredicate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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