UsingTranslator::getIt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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