Completed
Branch feature/pre-split (c69968)
by Anton
21:25
created

WhereTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setWhere() 0 4 1
A getWhere() 0 4 1
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\ORM\Commands\Traits;
8
9
trait WhereTrait
10
{
11
    /**
12
     * Where conditions (short where format).
13
     *
14
     * @var array
15
     */
16
    private $where = [];
17
18
    /**
19
     * @param array $where
20
     */
21
    public function setWhere(array $where)
22
    {
23
        $this->where = $where;
24
    }
25
26
    /**
27
     * @return array
28
     */
29
    public function getWhere(): array
30
    {
31
        return $this->where;
32
    }
33
}