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

TranslatorTrait::getTranslator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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