Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Validation\ValidationIssues Class Reference

Mutable collection for validation issues. More...

Inheritance diagram for MediaWiki\Extension\Translate\Validation\ValidationIssues:

Public Member Functions

 add (ValidationIssue $issue)
 Add a new validation issue to the collection.
 
 merge (ValidationIssues $issues)
 Merge another collection to this collection.
 
 hasIssues ()
 Check whether this collection is not empty.
 
 getIterator ()
 
 count ()
 @inheritDoc
 

Detailed Description

Mutable collection for validation issues.

@newable

Since
2020.06

Definition at line 21 of file ValidationIssues.php.

Member Function Documentation

◆ add()

MediaWiki\Extension\Translate\Validation\ValidationIssues::add ( ValidationIssue $issue)

Add a new validation issue to the collection.

Definition at line 26 of file ValidationIssues.php.

◆ count()

MediaWiki\Extension\Translate\Validation\ValidationIssues::count ( )

@inheritDoc

Definition at line 50 of file ValidationIssues.php.

◆ getIterator()

MediaWiki\Extension\Translate\Validation\ValidationIssues::getIterator ( )
Returns
Traversable<ValidationIssue>

Definition at line 45 of file ValidationIssues.php.

◆ hasIssues()

MediaWiki\Extension\Translate\Validation\ValidationIssues::hasIssues ( )

Check whether this collection is not empty.

Returns
bool False if empty, true otherwise

Definition at line 40 of file ValidationIssues.php.

◆ merge()

MediaWiki\Extension\Translate\Validation\ValidationIssues::merge ( ValidationIssues $issues)

Merge another collection to this collection.

Definition at line 31 of file ValidationIssues.php.


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