<?php

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

namespace Wikimedia\IDLeDOM\Stub;

use Exception;

trait HTMLCanvasElement {

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

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

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

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

	/**
	 * @param ?string $type
	 * @param mixed|null $quality
	 * @return string
	 */
	public function toDataURL( ?string $type = null, /* any */ $quality = null ): string {
		throw self::_unimplemented();
	}

}
