WhereTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setWhere() 0 4 1
A getWhere() 0 4 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
}