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

ExecuteQuery   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 30
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getSql() 0 4 1
A getBindings() 0 4 1
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