getName(); $className = 'Wikia\\PortableInfobox\\Parser\\Nodes\\' . 'Node' . ucfirst( strtolower( $tagType ) ); 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 ); } }