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

FunctionCallContext   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getCallHints() 0 4 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
}