public function addMessage($type, $message, $file = null, $file_details = null)
	{
		switch ($type)
		{
			case Output::FATAL:
				$this->fatals[] = new Message($type, $message, $file, $file_details);
				break;
			case Output::ERROR:
				$this->errors[] = new Message($type, $message, $file, $file_details);
				break;
			case Output::WARNING:
				$this->warnings[] = new Message($type, $message, $file, $file_details);
				break;
			case Output::NOTICE:
				$this->notices[] = new Message($type, $message, $file, $file_details);
				break;
			default:
				// TODO: Decide on this?
		}
	}
public function addMessage($type, $message, $file = null, $file_details = null)
	{
		switch ($type)
		{
			case Output::FATAL:
				$this->fatals[] = new Message($type, $message, $file, $file_details);
				break;
			case Output::ERROR:
				$this->errors[] = new Message($type, $message, $file, $file_details);
				break;
			case Output::WARNING:
				$this->warnings[] = new Message($type, $message, $file, $file_details);
				break;
			case Output::NOTICE:
				$this->notices[] = new Message($type, $message, $file, $file_details);
				break;
			default:
				// TODO: Decide on this?
		}
	}
public function addMessage ( $ type , $ message , $ file = null , $ file_details = null ) { switch ( $ type ) { case Output :: FATAL : $ this -> fatals [ ] = new Message ( $ type , $ message , $ file , $ file_details ) ; break ; case Output :: ERROR : $ this -> errors [ ] = new Message ( $ type , $ message , $ file , $ file_details ) ; break ; case Output :: WARNING : $ this -> warnings [ ] = new Message ( $ type , $ message , $ file , $ file_details ) ; break ; case Output :: NOTICE : $ this -> notices [ ] = new Message ( $ type , $ message , $ file , $ file_details ) ; break ; default : // TODO: Decide on this? } }
Add a new message to the output of the validator.

@param int		$type Type message
@param string	$message Message
@param string	$file
@param string	$file_details
Add a new message to the output of the validator .