summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/sql/src/Filter/InAndNotInUtils.php
blob: 6f26de13a2bdfca25f3a47de484d0e36fb5f42b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php

namespace ipl\Sql\Filter;

use ipl\Sql\Select;

trait InAndNotInUtils
{
    /** @var string[]|string */
    protected $column;

    /** @var Select */
    protected $value;

    /**
     * Get the columns of this condition
     *
     * @return string[]|string
     */
    public function getColumn()
    {
        return $this->column;
    }

    /**
     * Set the columns of this condition
     *
     * @param string[]|string $column
     *
     * @return $this
     */
    public function setColumn($column): self
    {
        $this->column = $column;

        return $this;
    }

    /**
     * Get the value of this condition
     *
     * @return Select
     */
    public function getValue(): Select
    {
        return $this->value;
    }

    /**
     * Set the value of this condition
     *
     * @param Select $value
     *
     * @return $this
     */
    public function setValue($value): self
    {
        $this->value = $value;

        return $this;
    }
}