wikimedia/mediawiki-extensions-Translate

View on GitHub
src/PageTranslation/TestingParsingPlaceholderFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\PageTranslation;

use MediaWiki\Extension\Translate\Utilities\ParsingPlaceholderFactory;

/**
 * @author Niklas Laxström
 * @license GPL-2.0-or-later
 * @since 2020.08
 */
class TestingParsingPlaceholderFactory extends ParsingPlaceholderFactory {
    /** @var int */
    private $i = 0;

    public function make(): string {
        return '<' . $this->i++ . '>';
    }
}