Object2attribute   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Importance

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

11 Methods

Rating   Name   Duplication   Size   Complexity  
A setValue2() 0 5 1
A getObject() 0 3 1
A setAttr() 0 5 1
A getAttr() 0 3 1
A setValue() 0 5 1
A getAlphaVariantmerkmal() 0 3 1
A setObject() 0 5 1
A setAlphaVariantmerkmal() 0 5 1
A getId() 0 3 1
A getValue2() 0 3 1
A getValue() 0 3 1
1
<?php
2
3
namespace App\Entity;
4
5
use App\Repository\Object2attributeRepository;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity(repositoryClass=Object2attributeRepository::class)
10
 */
11
class Object2attribute
12
{
13
    /**
14
     * @ORM\Id()
15
     * @ORM\GeneratedValue()
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
    
20
    /**
21
     * @ORM\Column(type="boolean", nullable=true)
22
     */
23
    private $alpha_variantmerkmal;
24
25
    /**
26
     * @ORM\Column(type="string", length=255, nullable=true)
27
     */
28
    private $value;
29
30
    /**
31
     * @ORM\Column(type="string", length=255, nullable=true)
32
     */
33
    private $value_2;
34
35
    /**
36
     * @ORM\ManyToOne(targetEntity=Article::class, inversedBy="attribute")
37
     * @ORM\JoinColumn(nullable=false)
38
     */
39
    private $object;
40
41
    /**
42
     * @ORM\ManyToOne(targetEntity=Attribute::class)
43
     * @ORM\JoinColumn(nullable=false)
44
     */
45
    private $attr;
46
47
    public function getId(): ?int
48
    {
49
        return $this->id;
50
    }
51
52
    public function getAlphaVariantmerkmal(): ?bool
53
    {
54
        return $this->alpha_variantmerkmal;
55
    }
56
57
    public function setAlphaVariantmerkmal(?bool $alpha_variantmerkmal): self
58
    {
59
        $this->alpha_variantmerkmal = $alpha_variantmerkmal;
60
61
        return $this;
62
    }
63
64
    public function getValue(): ?string
65
    {
66
        return $this->value;
67
    }
68
69
    public function setValue(?string $value): self
70
    {
71
        $this->value = $value;
72
73
        return $this;
74
    }
75
76
    public function getValue2(): ?string
77
    {
78
        return $this->value_2;
79
    }
80
81
    public function setValue2(?string $value_2): self
82
    {
83
        $this->value_2 = $value_2;
84
85
        return $this;
86
    }
87
88
    public function getObject(): ?Article
89
    {
90
        return $this->object;
91
    }
92
93
    public function setObject(?Article $object): self
94
    {
95
        $this->object = $object;
96
97
        return $this;
98
    }
99
100
    public function getAttr(): ?Attribute
101
    {
102
        return $this->attr;
103
    }
104
105
    public function setAttr(?Attribute $attr): self
106
    {
107
        $this->attr = $attr;
108
109
        return $this;
110
    }
111
}
112