<?php

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

namespace Wikimedia\IDLeDOM\Stub;

use Exception;
use Wikimedia\IDLeDOM\HTMLFormElement;

trait HTMLOptionElement {

	// 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 HTMLFormElement|null
	 */
	public function getForm() {
		throw self::_unimplemented();
	}

	/**
	 * @return string
	 */
	public function getLabel(): string {
		throw self::_unimplemented();
	}

	/**
	 * @param string $val
	 */
	public function setLabel( string $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return bool
	 */
	public function getSelected(): bool {
		throw self::_unimplemented();
	}

	/**
	 * @param bool $val
	 */
	public function setSelected( bool $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return string
	 */
	public function getValue(): string {
		throw self::_unimplemented();
	}

	/**
	 * @param string $val
	 */
	public function setValue( string $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return string
	 */
	public function getText(): string {
		throw self::_unimplemented();
	}

	/**
	 * @param string $val
	 */
	public function setText( string $val ): void {
		throw self::_unimplemented();
	}

	/**
	 * @return int
	 */
	public function getIndex(): int {
		throw self::_unimplemented();
	}

}
