Currency::getNumericCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 1
b 0
f 1
cc 1
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace App\Entity;
4
5
use App\Repository\CurrencyRepository;
6
use Doctrine\DBAL\Types\Types;
7
use Doctrine\ORM\Mapping as ORM;
8
9
#[ORM\Entity(repositoryClass: CurrencyRepository::class)]
10
class Currency
11
{
12
    #[ORM\Id]
13
    #[ORM\GeneratedValue]
14
    #[ORM\Column]
15
    private ?int $id = null;
16
17
    #[ORM\Column(length: 5)]
18
    private ?string $alpabethicCode = null;
19
20
    #[ORM\Column(type: Types::SMALLINT)]
21
    private ?int $decimalDigits = null;
22
23
    #[ORM\Column(length: 5)]
24
    private ?string $numericCode = null;
25
26
    #[ORM\Column(length: 255)]
27
    private ?string $entity = null;
28
29
    public function getId(): ?int
30
    {
31
        return $this->id;
32
    }
33
34
    public function getAlpabethicCode(): ?string
35
    {
36
        return $this->alpabethicCode;
37
    }
38
39
    public function setAlpabethicCode(string $alpabethicCode): static
40
    {
41
        $this->alpabethicCode = $alpabethicCode;
42
43
        return $this;
44
    }
45
46
    public function getDecimalDigits(): ?int
47
    {
48
        return $this->decimalDigits;
49
    }
50
51
    public function setDecimalDigits(int $decimalDigits): static
52
    {
53
        $this->decimalDigits = $decimalDigits;
54
55
        return $this;
56
    }
57
58
    public function getNumericCode(): ?string
59
    {
60
        return $this->numericCode;
61
    }
62
63
    public function setNumericCode(string $numericCode): static
64
    {
65
        $this->numericCode = $numericCode;
66
67
        return $this;
68
    }
69
70
    public function getEntity(): ?string
71
    {
72
        return $this->entity;
73
    }
74
75
    public function setEntity(string $entity): static
76
    {
77
        $this->entity = $entity;
78
79
        return $this;
80
    }
81
}
82