Passed
Push — master ( ab6f49...c762ff )
by
unknown
16:59 queued 08:07
created

SearchEngineFieldValue::setResourceNodeId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
use Doctrine\ORM\Mapping as ORM;
10
11
/**
12
 * SearchEngineFieldValue.
13
 */
14
#[ORM\Table(name: 'search_engine_field_value')]
15
#[ORM\Entity]
16
class SearchEngineFieldValue
17
{
18
    #[ORM\Column(name: 'id', type: 'integer')]
19
    #[ORM\Id]
20
    #[ORM\GeneratedValue(strategy: 'IDENTITY')]
21
    protected ?int $id = null;
22
23
    #[ORM\Column(name: 'resource_node_id', type: 'integer', nullable: false)]
24
    protected int $resourceNodeId;
25
26
    #[ORM\Column(name: 'field_id', type: 'integer', nullable: false)]
27
    protected int $fieldId;
28
29
    #[ORM\Column(name: 'value', type: 'string', length: 200, nullable: false)]
30
    protected string $value;
31
32
    public function getId(): ?int
33
    {
34
        return $this->id;
35
    }
36
37
    public function setResourceNodeId(int $resourceNodeId): self
38
    {
39
        $this->resourceNodeId = $resourceNodeId;
40
41
        return $this;
42
    }
43
44
    public function getResourceNodeId(): int
45
    {
46
        return $this->resourceNodeId;
47
    }
48
49
    public function setFieldId(int $fieldId): self
50
    {
51
        $this->fieldId = $fieldId;
52
53
        return $this;
54
    }
55
56
    public function getFieldId(): int
57
    {
58
        return $this->fieldId;
59
    }
60
61
    public function setValue(string $value): self
62
    {
63
        $this->value = $value;
64
65
        return $this;
66
    }
67
68
    public function getValue(): string
69
    {
70
        return $this->value;
71
    }
72
}
73