Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\Translate\Utilities\StringComparators; |
4 | |
5 | /** |
6 | * An interface to be implemented by comparators that will compare percentage |
7 | * of similarity between strings. |
8 | */ |
9 | interface StringComparator { |
10 | /** |
11 | * Compares the two messages and returns a similarity percentage |
12 | * |
13 | * @param string $a |
14 | * @param string $b |
15 | * @return float 0-1 with 1 being an exact match |
16 | */ |
17 | public function getSimilarity( $a, $b ); |
18 | } |