Completed
Push — master ( 5aaba6...c938da )
by Changwan
04:09
created

ExecuteQuery::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
namespace Wandu\Database\Events;
3
4
class ExecuteQuery
5
{
6
    /** @var string */
7
    protected $sql;
8
    
9
    /** @var array */
10
    protected $bindings = [];
11
    
12 17
    public function __construct(string $sql, array $bindings = [])
13
    {
14 17
        $this->sql = $sql;
15 17
        $this->bindings = $bindings;
16 17
    }
17
18
    /**
19
     * @return string
20
     */
21 3
    public function getSql(): string
22
    {
23 3
        return $this->sql;
24
    }
25
26
    /**
27
     * @return array
28
     */
29 3
    public function getBindings(): array
30
    {
31 3
        return $this->bindings;
32
    }
33
}
34