Passed
Pull Request — master (#7144)
by
unknown
16:21 queued 06:48
created

SearchEngineRef   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 18
c 0
b 0
f 0
dl 0
loc 42
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getResourceNodeId() 0 3 1
A setResourceNodeId() 0 5 1
A getId() 0 3 1
A getSearchDid() 0 3 1
A setSearchDid() 0 5 1
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