Class yii\debug\components\search\matchers\SameAs

Inheritanceyii\debug\components\search\matchers\SameAs » yii\debug\components\search\matchers\Base » yii\base\Component
Implementsyii\debug\components\search\matchers\MatcherInterface
Available since version2.0

Checks if the given value is exactly or partially same as the base one.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$partial boolean If partial match should be used. yii\debug\components\search\matchers\SameAs

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$baseValue mixed Base value to check yii\debug\components\search\matchers\Base

Public Methods

Hide inherited methods

MethodDescriptionDefined 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\SameAs
setValue() Sets base value to match against yii\debug\components\search\matchers\Base

Property Details

$partial public property

If partial match should be used.

public boolean $partial false

Method Details

match() public method

Checks if the value passed matches base value.

public boolean match ( $value )
$value mixed

Value to be matched

return boolean

If there is a match