• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rich-id / terms-module / #64

11 Oct 2023 03:35PM UTC coverage: 83.731%. First build
#64

push

web-flow
Merge b679837ca into b062eebb9

146 of 146 new or added lines in 12 files covered. (100.0%)

772 of 922 relevant lines covered (83.73%)

3.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Infrastructure/Adapter/Translator.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace RichId\TermsModuleBundle\Infrastructure\Adapter;
6

7
use RichId\TermsModuleBundle\Domain\Port\TranslatorInterface;
8
use Symfony\Contracts\Translation\TranslatorInterface as SymfonyTranslatorInterface;
9

10
class Translator implements TranslatorInterface
11
{
12
    /** @var SymfonyTranslatorInterface */
13
    protected $translator;
14

15
    public function __construct(SymfonyTranslatorInterface $translator)
16
    {
17
        $this->translator = $translator;
×
18
    }
×
19

20
    /** @param array<string, string> $parameters */
21
    public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string
22
    {
23
        return $this->translator->trans($id, $parameters, $domain, $locale);
×
24
    }
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc