UsingTranslator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getIt() 0 4 1
1
<?php
2
3
namespace Loevgaard\DandomainAltapayBundle\Tests\Translation\Fixture;
4
5
use Loevgaard\DandomainAltapayBundle\Translation\TranslatorTrait;
6
use Symfony\Component\DependencyInjection\ContainerInterface;
7
use Symfony\Component\Translation\TranslatorInterface;
8
9
class UsingTranslator
10
{
11
    use TranslatorTrait;
12
13
    /**
14
     * @var ContainerInterface
15
     */
16
    protected $container;
17
18
    public function __construct(ContainerInterface $container)
19
    {
20
        $this->container = $container;
21
    }
22
23
    /**
24
     * @return TranslatorInterface
25
     */
26
    public function getIt()
27
    {
28
        return $this->getTranslator($this->container);
29
    }
30
}
31