NestedCriteria   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A whereHandler() 0 6 1
1
<?php
2
3
namespace Pixie\QueryBuilder;
4
5
class NestedCriteria extends QueryBuilderHandler
6
{
7
    /**
8
     * @param string|Raw $key
9
     * @param string|mixed|null $operator Can be used as value, if 3rd arg not passed
10
     * @param mixed|null $value
11
     * @param string $joiner
12
     *
13
     * @return $this
14
     */
15
    protected function whereHandler($key, $operator = null, $value = null, $joiner = 'AND')
16
    {
17
        $key                            = $this->addTablePrefix($key);
18
        $this->statements['criteria'][] = compact('key', 'operator', 'value', 'joiner');
19
20
        return $this;
21
    }
22
}
23