Passed
Pull Request — master (#7159)
by
unknown
09:00
created

SearchEngineRef::getToolId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
 * SearchEngineRef.
13
 */
14
#[ORM\Table(name: 'search_engine_ref')]
15
#[ORM\Entity]
16
class SearchEngineRef
17
{
18
    #[ORM\Column(name: 'resource_node_id', type: 'integer', nullable: true)]
19
    protected ?int $resourceNodeId = null;
20
21
    #[ORM\Column(name: 'search_did', type: 'integer', nullable: false)]
22
    protected int $searchDid;
23
24
    #[ORM\Column(name: 'id', type: 'integer')]
25
    #[ORM\Id]
26
    #[ORM\GeneratedValue(strategy: 'IDENTITY')]
27
    protected ?int $id = null;
28
29
    public function getId(): ?int
30
    {
31
        return $this->id;
32
    }
33
34
    public function getResourceNodeId(): ?int
35
    {
36
        return $this->resourceNodeId;
37
    }
38
39
    public function setResourceNodeId(?int $resourceNodeId): self
40
    {
41
        $this->resourceNodeId = $resourceNodeId;
42
43
        return $this;
44
    }
45
46
    public function getSearchDid(): int
47
    {
48
        return $this->searchDid;
49
    }
50
51
    public function setSearchDid(int $searchDid): self
52
    {
53
        $this->searchDid = $searchDid;
54
55
        return $this;
56
    }
57
}
58