<?php

// AUTOMATICALLY GENERATED.  DO NOT EDIT.
// Use `composer build` to regenerate.

namespace Wikimedia\IDLeDOM\Stub;

use Exception;

trait DocumentFragment {
	// use \Wikimedia\IDLeDOM\Stub\NonElementParentNode;
	// use \Wikimedia\IDLeDOM\Stub\ParentNode;

	// Underscore is used to avoid conflicts with DOM-reserved names
	// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
	// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName

	/**
	 * @return Exception
	 */
	abstract protected function _unimplemented(): Exception;

	// phpcs:enable

	/**
	 * @param string $data
	 * @return bool
	 */
	public function appendXML( string $data ): bool {
		throw self::_unimplemented();
	}

}
