<?php

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

namespace Wikimedia\IDLeDOM\Stub;

use Exception;
use Wikimedia\IDLeDOM\URLSearchParams;

trait URL {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	/**
	 * @return URLSearchParams
	 */
	public function getSearchParams() {
		throw self::_unimplemented();
	}

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

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

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

}
