Completed
Push — master ( c80938...ad1942 )
by Joachim
14:02
created

TagTranslation::setText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
     * @return TagTranslation
37
     */
38
    public function setText(?string $text)
39
    {
40
        $this->text = $text;
41
        return $this;
42
    }
43
}