ModelPersonalTranslatable::__construct()   A
last analyzed

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 Sonata\TranslationBundle\Tests\Fixtures\Traits;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use Sonata\TranslationBundle\Model\Gedmo\TranslatableInterface;
7
use Sonata\TranslationBundle\Traits\Gedmo\PersonalTranslatableTrait;
8
9
class ModelPersonalTranslatable implements TranslatableInterface
10
{
11
    use PersonalTranslatableTrait;
12
13
    /**
14
     * @var ArrayCollection
15
     */
16
    protected $translations;
17
18
    public function __construct()
19
    {
20
        $this->translations = new ArrayCollection();
21
    }
22
}
23