Flarum\Core\Search\AbstractRegexGambit::conditions PHP Method

conditions() abstract protected method

Apply conditions to the search, given that the gambit was matched.
abstract protected conditions ( AbstractSearch $search, array $matches, boolean $negate ) : mixed
$search AbstractSearch The search object.
$matches array An array of matches from the search bit.
$negate boolean Whether or not the bit was negated, and thus whether or not the conditions should be negated.
return mixed
    protected abstract function conditions(AbstractSearch $search, array $matches, $negate);
AbstractRegexGambit