original_string: public function setMethod($method) {
          $methods = array(
              COMPLETION_AGGREGATION_ALL,
              COMPLETION_AGGREGATION_ANY,
          );
  
          if (in_array($method, $methods)) {
              $this->method = $method;
          } else {
              $this->method = COMPLETION_AGGREGATION_ALL;
          }
      }
code: public function setMethod($method) {
          $methods = array(
              COMPLETION_AGGREGATION_ALL,
              COMPLETION_AGGREGATION_ANY,
          );
  
          if (in_array($method, $methods)) {
              $this->method = $method;
          } else {
              $this->method = COMPLETION_AGGREGATION_ALL;
          }
      }
code_tokens: public function setMethod ( $ method ) { $ methods = array ( COMPLETION_AGGREGATION_ALL , COMPLETION_AGGREGATION_ANY , ) ; if ( in_array ( $ method , $ methods ) ) { $ this -> method = $ method ; } else { $ this -> method = COMPLETION_AGGREGATION_ALL ; } }
docstring: Set the aggregation method
  
  @param int $method One of COMPLETION_AGGREGATION_ALL or COMPLETION_AGGREGATION_ANY
docstring_tokens: Set the aggregation method