Completed
Push — master ( fd7370...afa46a )
by Joachim
04:42
created

UsingTranslator   A

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
namespace Loevgaard\DandomainAltapayBundle\Tests\Translation\Fixture;
3
4
use Loevgaard\DandomainAltapayBundle\Translation\TranslatorTrait;
5
use Symfony\Component\DependencyInjection\ContainerInterface;
6
use Symfony\Component\Translation\IdentityTranslator;
7
8
class UsingTranslator
9
{
10
    use TranslatorTrait;
11
12
    /**
13
     * @var ContainerInterface
14
     */
15
    protected $container;
16
17
    public function __construct(ContainerInterface $container)
18
    {
19
        $this->container = $container;
20
    }
21
22
    /**
23
     * @return IdentityTranslator
24
     */
25
    public function getIt()
26
    {
27
        return $this->getTranslator();
28
    }
29
}