TagTranslation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 30
ccs 0
cts 15
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setText() 0 5 1
A getText() 0 3 1
1
<?php
2
3
namespace Loevgaard\DandomainFoundation\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Knp\DoctrineBehaviors\Model\Translatable\Translation;
7
use Loevgaard\DandomainFoundation\Entity\Generated\TagTranslationInterface;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...TagTranslationInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Loevgaard\DandomainFoundation\Entity\Generated\TagTranslationTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...ted\TagTranslationTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
/**
11
 * @ORM\Entity()
12
 * @ORM\Table(name="ldf_tag_translations")
13
 */
14
class TagTranslation implements TagTranslationInterface
15
{
16
    use TagTranslationTrait;
17
    use Translation;
18
19
    /**
20
     * @var string|null
21
     *
22
     * @ORM\Column(type="string", length=191)
23
     **/
24
    protected $text;
25
26
    /**
27
     * @return null|string
28
     */
29
    public function getText(): ?string
30
    {
31
        return $this->text;
32
    }
33
34
    /**
35
     * @param null|string $text
36
     *
37
     * @return TagTranslation
38
     */
39
    public function setText(?string $text)
40
    {
41
        $this->text = $text;
42
43
        return $this;
44
    }
45
}
46