Abstract Class yii\debug\components\search\matchers\Base

Inheritanceyii\debug\components\search\matchers\Base » yii\base\Component
Implementsyii\debug\components\search\matchers\MatcherInterface
Subclassesyii\debug\components\search\matchers\GreaterThan, yii\debug\components\search\matchers\GreaterThanOrEqual, yii\debug\components\search\matchers\LowerThan, yii\debug\components\search\matchers\SameAs
Available since extension's version2.0
Source Code https://github.com/yiisoft/yii2-debug/blob/master/src/components/search/matchers/Base.php

Base class for matchers that are used in a filter.

Protected Properties

Hide inherited properties

Property Type Description Defined By

Public Methods

Hide inherited methods

Method Description Defined By
hasValue() Checks if base value is set yii\debug\components\search\matchers\Base
match() Checks if the value passed matches base value. yii\debug\components\search\matchers\MatcherInterface
setValue() Sets base value to match against yii\debug\components\search\matchers\Base

Property Details

Hide inherited properties

$baseValue protected property

Base value to check

protected mixed $baseValue null

Method Details

Hide inherited methods

hasValue() public method

Checks if base value is set

public boolean hasValue ( )
return boolean

If base value is set

                public function hasValue()
{
    return !empty($this->baseValue) || ($this->baseValue === '0');
}

            
match() public abstract method

Defined in: yii\debug\components\search\matchers\MatcherInterface::match()

Checks if the value passed matches base value.

public abstract boolean match ( $value )
$value mixed

Value to be matched

return boolean

If there is a match

                public function match($value);

            
setValue() public method

Sets base value to match against

public void setValue ( $value )
$value mixed

                public function setValue($value)
{
    $this->baseValue = $value;
}