/**
  * Set the statistics operator to use.
  * 
  * @param integer $name A value from the Statistics enumeration.
  * @throws InvalidArgumentException If $name is not a value from the Statistics enumeration.
  */
 public function setName($name)
 {
     if (in_array($name, Statistics::asArray())) {
         $this->name = $name;
     } else {
         $msg = "The name argument must be a value from the Statistics enumeration, '" . $name . "' given.";
         throw new InvalidArgumentException($msg);
     }
 }