Passed
Push — master ( 9b7912...982aac )
by Janis
02:15
created

BindTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A bindData() 0 3 1
A bind() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace Janisbiz\LightOrm\Dms\MySQL\QueryBuilder\Traits;
4
5
trait BindTrait
6
{
7
    /**
8
     * @var array
9
     */
10
    protected $bind = [];
11
12
    /**
13
     * @param array $bind
14
     *
15
     * @return $this
16
     */
17
    public function bind(array $bind = [])
18
    {
19
        $this->bind = \array_merge($this->bind, $bind);
20
21
        return $this;
22
    }
23
24
    /**
25
     * @return array
26
     */
27
    public function bindData(): array
28
    {
29
        return $this->bind;
30
    }
31
}
32