public function setThreshold($threshold)
    {

        // need to return << true
        if (is_array($threshold) === true) {
            $threshold = array_map('intval', array_splice($threshold, 0, 2));
        }

        else {
            $threshold = intval($threshold);
        }
        $this->validator->verify($threshold, [], 'threshold');

        return $this;
    }
public function setThreshold($threshold)
    {

        // need to return << true
        if (is_array($threshold) === true) {
            $threshold = array_map('intval', array_splice($threshold, 0, 2));
        }

        else {
            $threshold = intval($threshold);
        }
        $this->validator->verify($threshold, [], 'threshold');

        return $this;
    }
public function setThreshold ( $ threshold ) { // need to return << true if ( is_array ( $ threshold ) === true ) { $ threshold = array_map ( 'intval' , array_splice ( $ threshold , 0 , 2 ) ) ; } else { $ threshold = intval ( $ threshold ) ; } $ this -> validator -> verify ( $ threshold , [ ] , 'threshold' ) ; return $ this ; }
Setup offset, limit threshold

@param  mixed            $threshold
@example <code>
$s->setThreshold(100)        //    limit
$s->setThreshold([0,100])    //    offset, limit
</code>
@throws ExceptionFactory {$error}
@return Searcher
Setup offset limit threshold