Completed
Push — master ( 14d1d8...f3cdf4 )
by Beniamin
03:22
created

FunctionCallContext::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * This file is part of Phuria SQL Builder package.
5
 *
6
 * Copyright (c) 2016 Beniamin Jonatan Šimko
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phuria\QueryBuilder\Expression;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 */
17
class FunctionCallContext
18
{
19
    /**
20
     * @var ExpressionInterface[] $callHints
21
     */
22
    private $callHints = [];
23
24
    /**
25
     * @param array $options
26
     */
27 1
    public function __construct(array $options)
28
    {
29 1
        $options = array_merge([
30 1
            'callHints' => []
31 1
        ], $options);
32
33 1
        $this->callHints = $options['callHints'];
34 1
    }
35
36
    /**
37
     * @return ExpressionInterface[]
38
     */
39 1
    public function getCallHints()
40
    {
41 1
        return $this->callHints;
42
    }
43
}