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

BindTrait::bind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
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