getName(); $className = 'PortableInfobox\\Parser\\Nodes\\' . 'Node' . mb_convert_case( mb_strtolower( $tagType ), MB_CASE_TITLE ); if ( class_exists( $className ) ) { /* @var $instance \Wikia\PortableInfobox\Parser\Nodes\Node */ $instance = new $className( $xmlNode, $data ); //wfProfileOut( __METHOD__ ); return $instance; } //wfProfileOut( __METHOD__ ); return new NodeUnimplemented( $xmlNode, $data ); } }