/** * Returns the valid verification number that $rut has to have. * * Devuelve el dígito verificador que debe tener el $rut ingresado. * Si quieres pasarle el RUT completo, puedes 'setear' el último * parámetro como true para que la función lo haga por ti * * Fuente: http://www.dcc.uchile.cl/~mortega/microcodigos/validarrut/php.php * * @author Luis Dujovne * @param $r * @param bool $has_to_remove_last_char * @return string * @static */ public static function getVerificationNumber($r, $has_to_remove_last_char = false) { return \Freshwork\ChileanBundle\Validations\Rut::getVerificationNumber($r, $has_to_remove_last_char); }