protected function compileRequired($key, $masque)
    {
        if (!isset($this->inputs[$key])
            || is_null($this->inputs[$key])
            || $this->inputs[$key] === ''
        ) {
            $this->last_message = $message = $this->lexique('required', $key);
            
            $this->errors[$key][] = [
                "masque" => $masque,
                "message" => $message
            ];
            
            $this->fails = true;
        }
    }
protected function compileRequired($key, $masque)
    {
        if (!isset($this->inputs[$key])
            || is_null($this->inputs[$key])
            || $this->inputs[$key] === ''
        ) {
            $this->last_message = $message = $this->lexique('required', $key);
            
            $this->errors[$key][] = [
                "masque" => $masque,
                "message" => $message
            ];
            
            $this->fails = true;
        }
    }
protected function compileRequired ( $ key , $ masque ) { if ( ! isset ( $ this -> inputs [ $ key ] ) || is_null ( $ this -> inputs [ $ key ] ) || $ this -> inputs [ $ key ] === '' ) { $ this -> last_message = $ message = $ this -> lexique ( 'required' , $ key ) ; $ this -> errors [ $ key ] [ ] = [ "masque" => $ masque , "message" => $ message ] ; $ this -> fails = true ; } }
Compile Required Rule

@param string $key
@param string $masque

@return void
Compile Required Rule