MediaWiki master
MediaWiki\User\UserRequirementsConditionValidator Class Reference

Public Member Functions

 __construct (private readonly LoggerInterface $logger)
 
 isValid (mixed $condition)
 Checks if the passed user requirements condition is valid.
 

Detailed Description

Definition at line 11 of file UserRequirementsConditionValidator.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\UserRequirementsConditionValidator::__construct ( private readonly LoggerInterface $logger)

Definition at line 13 of file UserRequirementsConditionValidator.php.

Member Function Documentation

◆ isValid()

MediaWiki\User\UserRequirementsConditionValidator::isValid ( mixed $condition)

Checks if the passed user requirements condition is valid.

If it's invalid, the details of what's wrong are logged.

Definition at line 22 of file UserRequirementsConditionValidator.php.


The documentation for this class was generated from the following file: