MediaWiki  master
BlockUserFactory.php
Go to the documentation of this file.
1 <?php
2 
22 namespace MediaWiki\Block;
23 
25 use User;
26 
30 interface BlockUserFactory {
44  public function newBlockUser(
45  $target,
46  User $performer,
47  string $expiry,
48  string $reason = '',
49  array $blockOptions = [],
50  array $blockRestrictions = [],
51  $tags = []
52  ) : BlockUser;
53 }
MediaWiki\Block\BlockUserFactory
Definition: BlockUserFactory.php:30
MediaWiki\Block
Definition: AbstractBlock.php:21
MediaWiki\Block\BlockUser
Handles the backend logic of blocking users.
Definition: BlockUser.php:45
MediaWiki\User\UserIdentity
Interface for objects representing user identity.
Definition: UserIdentity.php:32
MediaWiki\Block\BlockUserFactory\newBlockUser
newBlockUser( $target, User $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[])
Create BlockUser.
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:63