private function getConverter($word, $info, $option) {
		if (!isset($this->converterMap[$word])) {
			throw new LoggerException("Invalid keyword '%$word' in converison pattern. Ignoring keyword.");
		}
		
		$converterClass = $this->converterMap[$word];
		if(!class_exists($converterClass)) {
			throw new LoggerException("Class '$converterClass' does not exist.");
		}
		
		$converter = new $converterClass($info, $option);
		if(!($converter instanceof LoggerPatternConverter)) {
			throw new LoggerException("Class '$converterClass' is not an instance of LoggerPatternConverter.");
		}
		
		return $converter;
	}
private function getConverter($word, $info, $option) {
		if (!isset($this->converterMap[$word])) {
			throw new LoggerException("Invalid keyword '%$word' in converison pattern. Ignoring keyword.");
		}
		
		$converterClass = $this->converterMap[$word];
		if(!class_exists($converterClass)) {
			throw new LoggerException("Class '$converterClass' does not exist.");
		}
		
		$converter = new $converterClass($info, $option);
		if(!($converter instanceof LoggerPatternConverter)) {
			throw new LoggerException("Class '$converterClass' is not an instance of LoggerPatternConverter.");
		}
		
		return $converter;
	}
private function getConverter ( $ word , $ info , $ option ) { if ( ! isset ( $ this -> converterMap [ $ word ] ) ) { throw new LoggerException ( "Invalid keyword '%$word' in converison pattern. Ignoring keyword." ) ; } $ converterClass = $ this -> converterMap [ $ word ] ; if ( ! class_exists ( $ converterClass ) ) { throw new LoggerException ( "Class '$converterClass' does not exist." ) ; } $ converter = new $ converterClass ( $ info , $ option ) ; if ( ! ( $ converter instanceof LoggerPatternConverter ) ) { throw new LoggerException ( "Class '$converterClass' is not an instance of LoggerPatternConverter." ) ; } return $ converter ; }
Determines which converter to use based on the conversion word. Creates
an instance of the converter using the provided formatting info and
option and returns it.

@param string $word The conversion word.
@param LoggerFormattingInfo $info Formatting info.
@param string $option Converter option.

@throws LoggerException

@return LoggerPatternConverter
Determines which converter to use based on the conversion word . Creates an instance of the converter using the provided formatting info and option and returns it .