original_string: public function where($flag, $value = null)
      {
          if (!in_array(strtolower($flag), static::$searchCriteria)) {
              throw new InvalidArgumentException("Invalid where criteria '{$flag}'");
          }
  
          $this->where[$flag] = $value;
          return $this;
      }
code: public function where($flag, $value = null)
      {
          if (!in_array(strtolower($flag), static::$searchCriteria)) {
              throw new InvalidArgumentException("Invalid where criteria '{$flag}'");
          }
  
          $this->where[$flag] = $value;
          return $this;
      }
code_tokens: public function where ( $ flag , $ value = null ) { if ( ! in_array ( strtolower ( $ flag ) , static :: $ searchCriteria ) ) { throw new InvalidArgumentException ( "Invalid where criteria '{$flag}'" ) ; } $ this -> where [ $ flag ] = $ value ; return $ this ; }
docstring: Set where condition.
  
  @param  string $flag
  @param  string $value
  @return $this
docstring_tokens: Set where condition .