src/GenericFilter.php
protected function addCriteria( $field, $operator, $value ) {

		$field = trim($field);

		if( !isset($this->criteria[$field]) )
			$this->criteria[$field] = [];

		$this->criteria[$field][$operator] = $value;

		return $this;

	}
protected function addCriteria( $field, $operator, $value ) {

		$field = trim($field);

		if( !isset($this->criteria[$field]) )
			$this->criteria[$field] = [];

		$this->criteria[$field][$operator] = $value;

		return $this;

	}
protected function addCriteria ( $ field , $ operator , $ value ) { $ field = trim ( $ field ) ; if ( ! isset ( $ this -> criteria [ $ field ] ) ) $ this -> criteria [ $ field ] = [ ] ; $ this -> criteria [ $ field ] [ $ operator ] = $ value ; return $ this ; }
Add a criteria item to the filter.
@param  string   $field
@param  string   $operator
@param  mixed    $value
@return self
Add a criteria item to the filter .