public function addMessage($type, $message, FileInterface $file = null)
	{
		switch ($type)
		{
			case Output::FATAL:
				$this->fatal++;
				break;
			case Output::ERROR:
				$this->error++;
				break;
			case Output::WARNING:
				$this->warning++;
				break;
			case Output::NOTICE:
				$this->notice++;
				break;
			case Output::DEBUG:
				break;
			default:
				// TODO: Decide on this?
		}
		$this->messages[] = new Message($type, $message, $file);
	}
public function addMessage($type, $message, FileInterface $file = null)
	{
		switch ($type)
		{
			case Output::FATAL:
				$this->fatal++;
				break;
			case Output::ERROR:
				$this->error++;
				break;
			case Output::WARNING:
				$this->warning++;
				break;
			case Output::NOTICE:
				$this->notice++;
				break;
			case Output::DEBUG:
				break;
			default:
				// TODO: Decide on this?
		}
		$this->messages[] = new Message($type, $message, $file);
	}
public function addMessage ( $ type , $ message , FileInterface $ file = null ) { switch ( $ type ) { case Output :: FATAL : $ this -> fatal ++ ; break ; case Output :: ERROR : $ this -> error ++ ; break ; case Output :: WARNING : $ this -> warning ++ ; break ; case Output :: NOTICE : $ this -> notice ++ ; break ; case Output :: DEBUG : break ; default : // TODO: Decide on this? } $ this -> messages [ ] = new Message ( $ type , $ message , $ file ) ; }
Add a new message to the output of the validator.

@param                                $type    int message type
@param                                $message string message
@param \Phpbb\Epv\Files\FileInterface $file    File the error happened in. When provided, this is displayed to the user
Add a new message to the output of the validator .