summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/stdlib/src/Filter/Like.php
blob: 7a0627970914cd9f6303879c33d49b339cfd2485 (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
<?php

namespace ipl\Stdlib\Filter;

class Like extends Condition
{
    /** @var bool */
    protected $ignoreCase = false;

    /**
     * Ignore case on both sides of the equation
     *
     * @return $this
     */
    public function ignoreCase()
    {
        $this->ignoreCase = true;

        return $this;
    }

    /**
    * Return whether this rule ignores case
    *
    * @return bool
    */
    public function ignoresCase()
    {
        return $this->ignoreCase;
    }
}