Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| EventRelayerNull | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| doNotify | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * @license GPL-2.0-or-later |
| 4 | * @file |
| 5 | */ |
| 6 | |
| 7 | namespace Wikimedia\EventRelayer; |
| 8 | |
| 9 | /** |
| 10 | * No-op class for publishing messages into a PubSub system |
| 11 | */ |
| 12 | class EventRelayerNull extends EventRelayer { |
| 13 | /** @inheritDoc */ |
| 14 | public function doNotify( $channel, array $events ) { |
| 15 | return true; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | /** @deprecated class alias since 1.41 */ |
| 20 | class_alias( EventRelayerNull::class, 'EventRelayerNull' ); |