AbstractTranslatable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Locastic\ApiPlatformTranslationBundle\Model;
6
7
/**
8
 * @package Locastic\ApiPlatformTranslationBundle\Model
9
 * @template T of TranslationInterface
10
 * @implements TranslatableInterface<T>
11
 */
12
abstract class AbstractTranslatable implements TranslatableInterface
13
{
14
    /**
15
     * @use TranslatableTrait<T>
16
     */
17
    use TranslatableTrait {
18
        __construct as private initializeTranslationsCollection;
19
    }
20
21
    /**
22
     * @codeCoverageIgnore
23
     */
24
    public function __construct()
25
    {
26
        $this->initializeTranslationsCollection();
27
    }
28
}
29