geno/wp-content/plugins/mailpoet/lib/Doctrine/Validator/Translator.php

18 lines
556 B
PHP
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Doctrine\Validator;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Symfony\Contracts\Translation\TranslatorTrait;
class Translator implements \MailPoetVendor\Symfony\Contracts\Translation\TranslatorInterface {
use TranslatorTrait;
public function transChoice($id, $number, array $parameters = [], $domain = null, $locale = null) {
return $this->trans($id, ['%count%' => $number] + $parameters, $domain, $locale);
}
}