Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 6
LanguageSr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 6
 __construct
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 6
<?php
namespace Wikimedia\Parsoid\Language;
/** Serbian (Српски / Srpski) specific code. */
class LanguageSr extends Language {
    public function __construct() {
        $variants = [ 'sr', 'sr-ec', 'sr-el' ];
        $variantfallbacks = [
            'sr' => 'sr-ec',
            'sr-ec' => 'sr',
            'sr-el' => 'sr',
        ];
        $flags = [
            'S' => 'S',
            "писмо" => 'S',
            'pismo' => 'S',
            'W' => 'W',
            "реч" => 'W',
            "reč" => 'W',
            "ријеч" => 'W',
            "riječ" => 'W',
        ];
        $converter = new SrConverter( $this, 'sr', $variants, $variantfallbacks, $flags );
        $this->setConverter( $converter );
    }
}