Test Setup Failed
Push — main ( 38dc31...b06171 )
by Jenny
26:47
created

TimeValue::setTarget()   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
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Entity\Goals;
4
5
use App\Repository\TimeValueRepository;
6
use Doctrine\DBAL\Types\Types;
7
use Doctrine\ORM\Mapping as ORM;
8
9
#[ORM\Entity(repositoryClass: TimeValueRepository::class)]
10
class TimeValue
11
{
12
    #[ORM\Id]
13
    #[ORM\GeneratedValue]
14
    #[ORM\Column]
15
    private ?int $id = null;
16
17
    #[ORM\Column(length: 255)]
18
    private ?string $target = null;
19
20
    #[ORM\Column(length: 255)]
21
    private ?string $indicator = null;
22
23
    #[ORM\Column]
24
    private ?int $year = null;
25
26
    #[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 5)]
27
    private ?string $value = null;
28
29
    public function getId(): ?int
30
    {
31
        return $this->id;
32
    }
33
34
    public function getTarget(): ?string
35
    {
36
        return $this->target;
37
    }
38
39
    public function setTarget(string $target): static
40
    {
41
        $this->target = $target;
42
43
        return $this;
44
    }
45
46
    public function getIndicator(): ?string
47
    {
48
        return $this->indicator;
49
    }
50
51
    public function setIndicator(string $indicator): static
52
    {
53
        $this->indicator = $indicator;
54
55
        return $this;
56
    }
57
58
    public function getYear(): ?int
59
    {
60
        return $this->year;
61
    }
62
63
    public function setYear(int $year): static
64
    {
65
        $this->year = $year;
66
67
        return $this;
68
    }
69
70
    public function getValue(): ?string
71
    {
72
        return $this->value;
73
    }
74
75
    public function setValue(string $value): static
76
    {
77
        $this->value = $value;
78
79
        return $this;
80
    }
81
}
82