getName(); $className = Node::class . mb_convert_case( mb_strtolower( $tagType ), MB_CASE_TITLE ); if ( class_exists( $className ) ) { /* @var $instance Node */ $instance = new $className( $xmlNode, $data ); if ( $instance instanceof Node ) { return $instance; } } return new NodeUnimplemented( $xmlNode, $data ); } }