Completed
Push — refonte ( a033cb...01d054 )
by Arnaud
20:23 queued 18:13
created

TranslatorTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTranslator() 0 4 1
A setTranslator() 0 4 1
1
<?php
2
3
namespace LAG\AdminBundle\Field\Traits;
4
5
use Symfony\Component\Translation\TranslatorInterface;
6
7
trait TranslatorTrait
8
{
9
    /**
10
     * @var TranslatorInterface
11
     */
12
    protected $translator;
13
14
    /**
15
     * @return TranslatorInterface
16
     */
17
    public function getTranslator(): TranslatorInterface
18
    {
19
        return $this->translator;
20
    }
21
22
    /**
23
     * @param TranslatorInterface $translator
24
     */
25
    public function setTranslator(TranslatorInterface $translator)
26
    {
27
        $this->translator = $translator;
28
    }
29
}
30