<?php

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

namespace Wikimedia\IDLeDOM\Stub;

use Exception;
use Wikimedia\IDLeDOM\HTMLCollection;
use Wikimedia\IDLeDOM\HTMLTableCaptionElement;
use Wikimedia\IDLeDOM\HTMLTableRowElement;
use Wikimedia\IDLeDOM\HTMLTableSectionElement;

trait HTMLTableElement {

	// 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

	/**
	 * @return HTMLTableCaptionElement|null
	 */
	public function getCaption() {
		throw self::_unimplemented();
	}

	/**
	 * @param HTMLTableCaptionElement|null $val
	 */
	public function setCaption( /* ?HTMLTableCaptionElement */ $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLTableCaptionElement
	 */
	public function createCaption() {
		throw self::_unimplemented();
	}

	/**
	 * @return void
	 */
	public function deleteCaption(): void {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLTableSectionElement|null
	 */
	public function getTHead() {
		throw self::_unimplemented();
	}

	/**
	 * @param HTMLTableSectionElement|null $val
	 */
	public function setTHead( /* ?HTMLTableSectionElement */ $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLTableSectionElement
	 */
	public function createTHead() {
		throw self::_unimplemented();
	}

	/**
	 * @return void
	 */
	public function deleteTHead(): void {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLTableSectionElement|null
	 */
	public function getTFoot() {
		throw self::_unimplemented();
	}

	/**
	 * @param HTMLTableSectionElement|null $val
	 */
	public function setTFoot( /* ?HTMLTableSectionElement */ $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLTableSectionElement
	 */
	public function createTFoot() {
		throw self::_unimplemented();
	}

	/**
	 * @return void
	 */
	public function deleteTFoot(): void {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLCollection
	 */
	public function getTBodies() {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLTableSectionElement
	 */
	public function createTBody() {
		throw self::_unimplemented();
	}

	/**
	 * @return HTMLCollection
	 */
	public function getRows() {
		throw self::_unimplemented();
	}

	/**
	 * @param int $index
	 * @return HTMLTableRowElement
	 */
	public function insertRow( int $index = -1 ) {
		throw self::_unimplemented();
	}

	/**
	 * @param int $index
	 * @return void
	 */
	public function deleteRow( int $index ): void {
		throw self::_unimplemented();
	}

}
