public function getErrorMessage()
     {
         $messages = $this->getMessage();
         $critical = $this->getCritical();
         $msgError = "";
         $i = 0;
         foreach ($messages as $message ) {

             if ($critical[$i++]) {
                 $msgError .= "{$message}\n";
             }
         }

         return $msgError;
     }
public function getErrorMessage()
     {
         $messages = $this->getMessage();
         $critical = $this->getCritical();
         $msgError = "";
         $i = 0;
         foreach ($messages as $message ) {

             if ($critical[$i++]) {
                 $msgError .= "{$message}\n";
             }
         }

         return $msgError;
     }
public function getErrorMessage ( ) { $ messages = $ this -> getMessage ( ) ; $ critical = $ this -> getCritical ( ) ; $ msgError = "" ; $ i = 0 ; foreach ( $ messages as $ message ) { if ( $ critical [ $ i ++ ] ) { $ msgError .= "{$message}\n" ; } } return $ msgError ; }
compile all errors in one line
@return string
compile all errors in one line