Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| WelcomeNotification | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getAgent | |
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 MediaWiki\User; |
| 8 | |
| 9 | use MediaWiki\Notification\AgentAware; |
| 10 | use MediaWiki\Notification\Notification; |
| 11 | |
| 12 | class WelcomeNotification extends Notification implements AgentAware { |
| 13 | |
| 14 | public function __construct( private readonly UserIdentity $agent ) { |
| 15 | parent::__construct( 'welcome' ); |
| 16 | } |
| 17 | |
| 18 | public function getAgent(): UserIdentity { |
| 19 | return $this->agent; |
| 20 | } |
| 21 | |
| 22 | } |