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;
        }
    }
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;
        }
    }
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 ; } }
Set the aggregation method

@param int $method One of COMPLETION_AGGREGATION_ALL or COMPLETION_AGGREGATION_ANY
Set the aggregation method