public function addMatcher($name, MatcherInterface $rule)
    {
        if ($rule->hasValue()) {
            $this->rules[$name][] = $rule;
        }
    }
public function addMatcher($name, MatcherInterface $rule)
    {
        if ($rule->hasValue()) {
            $this->rules[$name][] = $rule;
        }
    }
public function addMatcher ( $ name , MatcherInterface $ rule ) { if ( $ rule -> hasValue ( ) ) { $ this -> rules [ $ name ] [ ] = $ rule ; } }
Adds data filtering rule.

@param string $name attribute name
@param MatcherInterface $rule
Adds data filtering rule .