HavingTrait::getHavingClauses()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * This file is part of UnderQuery package.
5
 *
6
 * Copyright (c) 2016 Beniamin Jonatan Šimko
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phuria\UnderQuery\QueryBuilder\Clause;
13
14
use Phuria\UnderQuery\Utils\RecursiveArgs;
15
16
/**
17
 * @author Beniamin Jonatan Šimko <[email protected]>
18
 */
19
trait HavingTrait
20
{
21
    /**
22
     * @var array $havingClauses
23
     */
24
    private $havingClauses = [];
25
26
    /**
27
     * @param mixed $_
28
     *
29
     * @return $this
30
     */
31
    public function andHaving($_)
0 ignored issues
show
Unused Code introduced by
The parameter $_ is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
        RecursiveArgs::each(func_get_args(), function ($arg) {
34
            $this->havingClauses[] = $arg;
35
        });
36
37
        return $this;
38
    }
39
40
    /**
41
     * @return array
42
     */
43
    public function getHavingClauses()
44
    {
45
        return $this->havingClauses;
46
    }
47
}