Passed
Push — develop ( a82d29...5207c2 )
by Jens
08:45
created

LineItemsTarget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A ofPredicate() 0 4 1
1
<?php
2
/**
3
 * @author @jayS-de <[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 LineItemsTarget setType(string $type = null)
13
 * @method string getPredicate()
14
 * @method LineItemsTarget setPredicate(string $predicate = null)
15
 */
16
class LineItemsTarget extends CartDiscountTarget
17
{
18
    const TARGET_TYPE = 'lineItems';
19
20
    public static function ofPredicate($predicate, $context = null)
21
    {
22
        return static::of($context)->setPredicate($predicate);
23
    }
24
}
25