protected function compileNumber($key, $masque)
    {
        if (!preg_match("/^number$/", $masque, $match)) {
            return;
        }

        if (is_numeric($this->inputs[$key])) {
            return;
        }

        $this->last_message = $this->lexique('number', $key);

        $this->fails = true;

        $this->errors[$key][] = [
            "masque" => $masque,
            "message" => $this->last_message
        ];
    }
protected function compileNumber($key, $masque)
    {
        if (!preg_match("/^number$/", $masque, $match)) {
            return;
        }

        if (is_numeric($this->inputs[$key])) {
            return;
        }

        $this->last_message = $this->lexique('number', $key);

        $this->fails = true;

        $this->errors[$key][] = [
            "masque" => $masque,
            "message" => $this->last_message
        ];
    }
protected function compileNumber ( $ key , $ masque ) { if ( ! preg_match ( "/^number$/" , $ masque , $ match ) ) { return ; } if ( is_numeric ( $ this -> inputs [ $ key ] ) ) { return ; } $ this -> last_message = $ this -> lexique ( 'number' , $ key ) ; $ this -> fails = true ; $ this -> errors [ $ key ] [ ] = [ "masque" => $ masque , "message" => $ this -> last_message ] ; }
Compile Number Rule

[number] Check that the contents of the field is a number

@param string $key
@param string $masque

@return void
Compile Number Rule