WhereTrait::setWhere()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Spiral, Core Components
4
 *
5
 * @author Wolfy-J
6
 */
7
8
namespace Spiral\ORM\Commands\Traits;
9
10
trait WhereTrait
11
{
12
    /**
13
     * Where conditions (short where format).
14
     *
15
     * @var array
16
     */
17
    private $where = [];
18
19
    /**
20
     * @param array $where
21
     */
22
    public function setWhere(array $where)
23
    {
24
        $this->where = $where;
25
    }
26
27
    /**
28
     * @return array
29
     */
30
    public function getWhere(): array
31
    {
32
        return $this->where;
33
    }
34
}