ModelPersonalTranslatable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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