assertRequiredOptions( self::CONSTRUCTOR_OPTIONS ); $this->options = $options; $this->blockUtils = $blockUtils; } /** * @param UserIdentity|string|null $target Target of the validated block; may be null if unknown * @param Authority $performer Performer of the validated block * * @return BlockPermissionChecker */ public function newBlockPermissionChecker( $target, Authority $performer ) { return new BlockPermissionChecker( $this->options, $this->blockUtils, $target, $performer ); } }