Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Validators\CompositeEntityValidator Class Reference

Composite validator for applying multiple validators as one. More...

+ Inheritance diagram for Wikibase\Repo\Validators\CompositeEntityValidator:
+ Collaboration diagram for Wikibase\Repo\Validators\CompositeEntityValidator:

Public Member Functions

 __construct (array $validators)
 
 validateEntity (EntityDocument $entity)
 Validate an entity by applying each of the validators supplied to the constructor.
 

Private Attributes

 $validators
 

Detailed Description

Composite validator for applying multiple validators as one.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\CompositeEntityValidator::__construct ( array  $validators)
Parameters
EntityValidator[]$validators

Member Function Documentation

◆ validateEntity()

Wikibase\Repo\Validators\CompositeEntityValidator::validateEntity ( EntityDocument  $entity)

Validate an entity by applying each of the validators supplied to the constructor.

See also
EntityValidator::validateEntity
Parameters
EntityDocument$entity
Returns
Result

Implements Wikibase\Repo\Validators\EntityValidator.

Member Data Documentation

◆ $validators

Wikibase\Repo\Validators\CompositeEntityValidator::$validators
private

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