Total Complexity | 10 |
Total Lines | 88 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Fee |
||
11 | { |
||
12 | /** |
||
13 | * @ORM\Id() |
||
14 | * @ORM\GeneratedValue() |
||
15 | * @ORM\Column(type="integer") |
||
16 | */ |
||
17 | private $id; |
||
18 | |||
19 | /** |
||
20 | * @ORM\Column(type="string", length=25) |
||
21 | */ |
||
22 | private $fee_id; |
||
23 | |||
24 | /** |
||
25 | * @ORM\Column(type="string", length=255, nullable=true) |
||
26 | */ |
||
27 | private $label; |
||
28 | |||
29 | /** |
||
30 | * @ORM\Column(type="decimal", precision=7, scale=2) |
||
31 | */ |
||
32 | private $balance; |
||
33 | |||
34 | /** |
||
35 | * @ORM\ManyToOne(targetEntity="App\Entity\Transaction", inversedBy="fees") |
||
36 | * @ORM\JoinColumn(nullable=false) |
||
37 | */ |
||
38 | private $transaction; |
||
39 | |||
40 | public function __construct($fee_id, $balance, $label) |
||
41 | { |
||
42 | $this->fee_id = $fee_id; |
||
43 | $this->balance = $balance; |
||
44 | $this->label = $label; |
||
45 | } |
||
46 | |||
47 | public function getId() |
||
50 | } |
||
51 | |||
52 | public function getFeeId(): ?string |
||
53 | { |
||
54 | return $this->fee_id; |
||
55 | } |
||
56 | |||
57 | public function setFeeId(string $fee_id): self |
||
58 | { |
||
59 | $this->fee_id = $fee_id; |
||
60 | |||
61 | return $this; |
||
62 | } |
||
63 | |||
64 | public function getLabel(): ?string |
||
65 | { |
||
66 | return $this->label; |
||
67 | } |
||
68 | |||
69 | public function setLabel(?string $label): self |
||
74 | } |
||
75 | |||
76 | public function getBalance() |
||
77 | { |
||
78 | return $this->balance; |
||
79 | } |
||
80 | |||
81 | public function setBalance($balance): self |
||
86 | } |
||
87 | |||
88 | public function getTransaction(): ?Transaction |
||
89 | { |
||
91 | } |
||
92 | |||
93 | public function setTransaction(?Transaction $transaction): self |
||
100 |