Passed
Push — master ( 9c8d3b...04f5d8 )
by Oss
01:40
created

ColumnPath::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
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
 * The path to the column relative to the root schema.
14
 *
15
 * @method string   getValue()  Returns column path.
16
 */
17
class ColumnPath extends Expression
18
{
19
20
    /**
21
     * Key depending on the ExpressionType property.
22
     *
23
     * @var string
24
     */
25
    protected $keyName = 'ColumnPath';
26
27
    /**
28
     * List of supported fields.
29
     *
30
     * @var array
31
     */
32
    protected $fields = [
33
        'value' => null,
34
    ];
35
36
    /**
37
     * Sets the input values.
38
     *
39
     * @param string $value Column path.
40
     */
41 3
    public function __construct($value)
42
    {
43 3
        parent::__construct([
44 3
            'value' => $value
45
        ]);
46 3
    }
47
}
48