mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-04 21:08:32 +00:00
0cf68818a8
* Add @var comments to untyped getService() calls so IDEs and tools are able to understand where the callers are. * Use the more specific IReadableDatabase where possible. * Fix missing import. Change-Id: I9c1153cb9fe872227753628a947f40bd5ee447fa
34 lines
849 B
PHP
34 lines
849 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
|
|
|
use MediaWiki\Extension\DiscussionTools\SubscriptionItem;
|
|
use MediaWiki\Extension\DiscussionTools\SubscriptionStore;
|
|
use MediaWiki\User\UserIdentity;
|
|
|
|
class MockSubscriptionStore extends SubscriptionStore {
|
|
|
|
/**
|
|
* @param mixed ...$args Unused, required for inheritance
|
|
*/
|
|
public function __construct( ...$args ) {
|
|
}
|
|
|
|
/**
|
|
* @param UserIdentity $user Unused, required for inheritance
|
|
* @param array|null $itemNames Unused, required for inheritance
|
|
* @param int[]|null $state Unused, required for inheritance
|
|
* @param array $options Unused, required for inheritance
|
|
* @return SubscriptionItem[]
|
|
*/
|
|
public function getSubscriptionItemsForUser(
|
|
UserIdentity $user,
|
|
?array $itemNames = null,
|
|
?array $state = null,
|
|
array $options = []
|
|
): array {
|
|
return [];
|
|
}
|
|
|
|
}
|