Test Failed
Push — master ( 475bfc...ca0e1d )
by Oss
05:46
created

ColumnPath::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * @category    Brownie/BpmOnline
4
 * @author      Brownie <[email protected]>
5
 * @license     https://opensource.org/licenses/MIT
6
 */
7
8
namespace Brownie\BpmOnline\DataService\Column\Expression;
9
10
use Brownie\BpmOnline\DataService\Column\Expression;
11
12
/**
13
 * @method string getValue() Returns column path.
14
 */
15
class ColumnPath extends Expression
16
{
17
18
    protected $keyName = 'ColumnPath';
19
20
    /**
21
     * List of supported fields.
22
     *
23
     * @var array
24
     */
25
    protected $fields = [
26
        'value' => null,
27
    ];
28
29
    /**
30
     * Sets the input values.
31
     *
32
     * @param string $value Column path.
33
     */
34 3
    public function __construct($value)
35
    {
36 3
        parent::__construct([
37 3
            'value' => $value
38
        ]);
39 3
    }
40
}
41