yii\debug\components\search\matchers\MatcherInterface - Yii2 类参考手册
Interface yii\debug\components\search\matchers\MatcherInterface
全部
| 方法 Methods
MatcherInterface should be implemented by all matchers that are used in a filter.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
hasValue() | Checks if base value is set | yii\debug\components\search\matchers\MatcherInterface |
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\MatcherInterface |
方法详情 Method Details
Checks if base value is set
public abstract boolean hasValue ( ) | ||
return | boolean | If base value is set |
---|
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 |
---|
Sets base value to match against
public abstract void setValue ( $value ) | ||
$value | mixed |