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

TagValueTranslation::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
namespace Loevgaard\DandomainFoundation\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
use Knp\DoctrineBehaviors\Model\Translatable\Translation;
6
use Loevgaard\DandomainFoundation\Entity\Generated\TagValueTranslationInterface;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...lueTranslationInterface 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...
7
use Loevgaard\DandomainFoundation\Entity\Generated\TagValueTranslationTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...agValueTranslationTrait 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
9
/**
10
 * @ORM\Entity()
11
 * @ORM\Table(name="ldf_tag_value_translations")
12
 */
13
class TagValueTranslation implements TagValueTranslationInterface
14
{
15
    use TagValueTranslationTrait;
16
    use Translation;
17
18
    /**
19
     * @var string|null
20
     *
21
     * @ORM\Column(type="string", length=191)
22
     **/
23
    protected $text;
24
25
    /**
26
     * @return null|string
27
     */
28
    public function getText(): ?string
29
    {
30
        return $this->text;
31
    }
32
33
    /**
34
     * @param null|string $text
35
     * @return TagValueTranslation
36
     */
37
    public function setText(?string $text)
38
    {
39
        $this->text = $text;
40
        return $this;
41
    }
42
}