Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
EventTarget
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 addEventListener
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 removeEventListener
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 dispatchEvent
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM\Stub;
7
8use Exception;
9use Wikimedia\IDLeDOM\AddEventListenerOptions;
10use Wikimedia\IDLeDOM\Event;
11use Wikimedia\IDLeDOM\EventListener;
12use Wikimedia\IDLeDOM\EventListenerOptions;
13
14trait EventTarget {
15
16    // Underscore is used to avoid conflicts with DOM-reserved names
17    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
18    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
19
20    /**
21     * @return Exception
22     */
23    abstract protected function _unimplemented(): Exception;
24
25    // phpcs:enable
26
27    /**
28     * @param string $type
29     * @param EventListener|callable|null $callback
30     * @param AddEventListenerOptions|associative-array|bool|null $options
31     * @return void
32     */
33    public function addEventListener( string $type, /* ?mixed */ $callback, /* ?mixed */ $options = null ): void {
34        throw self::_unimplemented();
35    }
36
37    /**
38     * @param string $type
39     * @param EventListener|callable|null $callback
40     * @param EventListenerOptions|associative-array|bool|null $options
41     * @return void
42     */
43    public function removeEventListener( string $type, /* ?mixed */ $callback, /* ?mixed */ $options = null ): void {
44        throw self::_unimplemented();
45    }
46
47    /**
48     * @param Event $event
49     * @return bool
50     */
51    public function dispatchEvent( /* Event */ $event ): bool {
52        throw self::_unimplemented();
53    }
54
55}