mediawiki-extensions-Discus.../tests/phpunit/MockSubscriptionStore.php
thiemowmde 0cf68818a8 Add various, more specific type hints
* 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
2023-06-09 13:44:42 +02:00

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 [];
}
}