| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 0.00% | 0 / 2 |  | 0.00% | 0 / 1 | CRAP |  | 0.00% | 0 / 1 | 
| ExampleEvent |  | 0.00% | 0 / 2 |  | 0.00% | 0 / 1 | 2 |  | 0.00% | 0 / 1 | 
| getListeners |  | 0.00% | 0 / 2 |  | 0.00% | 0 / 1 | 2 | |||
| 1 | <?php | 
| 2 | /** | 
| 3 | * This file is part of the sshilko/php-sql-mydb package. | 
| 4 | * | 
| 5 | * (c) Sergei Shilko <contact@sshilko.com> | 
| 6 | * | 
| 7 | * MIT License | 
| 8 | * | 
| 9 | * For the full copyright and license information, please view the LICENSE | 
| 10 | * file that was distributed with this source code. | 
| 11 | * @license https://opensource.org/licenses/mit-license.php MIT | 
| 12 | */ | 
| 13 | |
| 14 | declare(strict_types = 1); | 
| 15 | |
| 16 | namespace sql\MydbEvent; | 
| 17 | |
| 18 | use sql\MydbEvent; | 
| 19 | |
| 20 | class ExampleEvent extends MydbEvent | 
| 21 | { | 
| 22 | protected function getListeners(): array | 
| 23 | { | 
| 24 | return [ | 
| 25 | (new ExampleListener())->onMyEvent(), | 
| 26 | (new ExampleListener())->onMySomeEvent(), | 
| 27 | ]; | 
| 28 | } | 
| 29 | } |