Currency::setSymbolRight()   A
last analyzed

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
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Entity;
6
7
use App\Entity\Traits\EntityIdTrait;
8
use Doctrine\ORM\Mapping as ORM;
9
10
/**
11
 * @ORM\Entity(repositoryClass="App\Repository\CurrencyRepository")
12
 */
13
class Currency
14
{
15
    use EntityIdTrait;
16
17
    /**
18
     * @ORM\Column(type="string", length=32)
19
     */
20
    private ?string $currency_title;
21
22
    /**
23
     * @ORM\Column(type="string", length=3)
24
     */
25
    private ?string $code;
26
27
    /**
28
     * @ORM\Column(type="string", length=12, nullable=true)
29
     */
30
    private ?string $symbol_left;
31
32
    /**
33
     * @ORM\Column(type="string", length=12, nullable=true)
34
     */
35
    private ?string $symbol_right;
36
37
    public function getCurrencyTitle(): ?string
38
    {
39
        return $this->currency_title;
40
    }
41
42
    public function setCurrencyTitle(string $currency_title): self
43
    {
44
        $this->currency_title = $currency_title;
45
46
        return $this;
47
    }
48
49
    public function getCode(): ?string
50
    {
51
        return $this->code;
52
    }
53
54
    public function setCode(string $code): self
55
    {
56
        $this->code = $code;
57
58
        return $this;
59
    }
60
61
    public function getSymbolLeft(): ?string
62
    {
63
        return $this->symbol_left;
64
    }
65
66
    public function setSymbolLeft(?string $symbol_left): self
67
    {
68
        $this->symbol_left = $symbol_left;
69
70
        return $this;
71
    }
72
73
    public function getSymbolRight(): ?string
74
    {
75
        return $this->symbol_right;
76
    }
77
78
    public function setSymbolRight(?string $symbol_right): self
79
    {
80
        $this->symbol_right = $symbol_right;
81
82
        return $this;
83
    }
84
}
85