Object2category   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 46
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setCatnid() 0 5 1
A setObjectid() 0 5 1
A getId() 0 3 1
A getObjectid() 0 3 1
A getCatnid() 0 3 1
1
<?php
2
3
namespace App\Entity;
4
5
use App\Repository\Object2categoryRepository;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity(repositoryClass=Object2categoryRepository::class)
10
 */
11
class Object2category
12
{
13
    /**
14
     * @ORM\Id()
15
     * @ORM\GeneratedValue()
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\Column(type="integer")
22
     */
23
    private $catnid;
24
25
    /**
26
     * @ORM\Column(type="integer")
27
     */
28
    private $objectid;
29
30
    public function getId(): ?int
31
    {
32
        return $this->id;
33
    }
34
35
    public function getCatnid(): ?int
36
    {
37
        return $this->catnid;
38
    }
39
40
    public function setCatnid(int $catnid): self
41
    {
42
        $this->catnid = $catnid;
43
44
        return $this;
45
    }
46
47
    public function getObjectid(): ?int
48
    {
49
        return $this->objectid;
50
    }
51
52
    public function setObjectid(int $objectid): self
53
    {
54
        $this->objectid = $objectid;
55
56
        return $this;
57
    }
58
}
59