protected function filterDigit($field, $details, $label, $message) {
        if (ctype_digit($this->getValue($field))) {
            return true;
        }
        throw new \Exception($message ? $message : $this->translate("$label must be digit!"));
    }
protected function filterDigit($field, $details, $label, $message) {
        if (ctype_digit($this->getValue($field))) {
            return true;
        }
        throw new \Exception($message ? $message : $this->translate("$label must be digit!"));
    }
protected function filterDigit ( $ field , $ details , $ label , $ message ) { if ( ctype_digit ( $ this -> getValue ( $ field ) ) ) { return true ; } throw new \ Exception ( $ message ? $ message : $ this -> translate ( "$label must be digit!" ) ) ; }
Checks if it's digit.
@param string $field
@param string [string] $details
@param string $label
@param string $message
@return boolean
@throws \Exception
Checks if it s digit .