Test Failed
Branch master (354693)
by Valery
12:29
created

Currency::setSymbolRight()   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
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 Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * @ORM\Entity(repositoryClass="App\Repository\CurrencyRepository")
11
 */
12
class Currency
13
{
14
    /**
15
     * @ORM\Id()
16
     * @ORM\GeneratedValue()
17
     * @ORM\Column(type="integer")
18
     */
19
    private $id;
20
21
    /**
22
     * @ORM\Column(type="string", length=32)
23
     */
24
    private $currency_title;
25
26
    /**
27
     * @ORM\Column(type="string", length=3)
28
     */
29
    private $code;
30
31
    /**
32
     * @ORM\Column(type="string", length=12, nullable=true)
33
     */
34
    private $symbol_left;
35
36
    /**
37
     * @ORM\Column(type="string", length=12, nullable=true)
38
     */
39
    private $symbol_right;
40
41
    public function getId(): ?int
42
    {
43
        return $this->id;
44
    }
45
46
    public function getCurrencyTitle(): ?string
47
    {
48
        return $this->currency_title;
49
    }
50
51
    public function setCurrencyTitle(string $currency_title): self
52
    {
53
        $this->currency_title = $currency_title;
54
55
        return $this;
56
    }
57
58
    public function getCode(): ?string
59
    {
60
        return $this->code;
61
    }
62
63
    public function setCode(string $code): self
64
    {
65
        $this->code = $code;
66
67
        return $this;
68
    }
69
70
    public function getSymbolLeft(): ?string
71
    {
72
        return $this->symbol_left;
73
    }
74
75
    public function setSymbolLeft(?string $symbol_left): self
76
    {
77
        $this->symbol_left = $symbol_left;
78
79
        return $this;
80
    }
81
82
    public function getSymbolRight(): ?string
83
    {
84
        return $this->symbol_right;
85
    }
86
87
    public function setSymbolRight(?string $symbol_right): self
88
    {
89
        $this->symbol_right = $symbol_right;
90
91
        return $this;
92
    }
93
}
94