Ejemplo n.º 1
0
 public function setSortTypeID($typeID)
 {
     if (!is_numeric($typeID)) {
         throw new Main\ArgumentTypeException('typeID', 'integer');
     }
     if (!is_int($typeID)) {
         $typeID = intval($typeID);
     }
     if (!DuplicateIndexType::isSigle($typeID)) {
         throw new Main\NotSupportedException("Criterion type(s): '" . DuplicateIndexType::resolveName($typeID) . "' is not supported in current context. Please use single type for sorting.");
     }
     $this->sortTypeID = $typeID;
 }