Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM;
7
8/**
9 * EventTarget
10 *
11 * @see https://dom.spec.whatwg.org/#interface-eventtarget
12 *
13 * @phan-forbid-undeclared-magic-properties
14 */
15interface EventTarget {
16
17    /**
18     * @param string $type
19     * @param EventListener|callable|null $callback
20     * @param AddEventListenerOptions|associative-array|bool|null $options
21     * @return void
22     */
23    public function addEventListener( string $type, /* ?mixed */ $callback, /* ?mixed */ $options = null ): void;
24
25    /**
26     * @param string $type
27     * @param EventListener|callable|null $callback
28     * @param EventListenerOptions|associative-array|bool|null $options
29     * @return void
30     */
31    public function removeEventListener( string $type, /* ?mixed */ $callback, /* ?mixed */ $options = null ): void;
32
33    /**
34     * @param Event $event
35     * @return bool
36     */
37    public function dispatchEvent( /* Event */ $event ): bool;
38
39}