public function setTolerance($tolerance = 0.20)
        {
            if ($tolerance < 0 || $tolerance > 1) {
                return false;
            }

            $this->_tolerance = round($tolerance, 2);

            return $this;
        }
public function setTolerance($tolerance = 0.20)
        {
            if ($tolerance < 0 || $tolerance > 1) {
                return false;
            }

            $this->_tolerance = round($tolerance, 2);

            return $this;
        }
public function setTolerance ( $ tolerance = 0.20 ) { if ( $ tolerance < 0 || $ tolerance > 1 ) { return false ; } $ this -> _tolerance = round ( $ tolerance , 2 ) ; return $ this ; }
Set fault tolerance for what is considered 'similar'.

@param float $tol a percentage setting how close the strings need to be to be considered similar.
Set fault tolerance for what is considered similar .