Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
46 / 46
100.00% covered (success)
100.00%
36 / 36
CRAP
100.00% covered (success)
100.00%
1 / 1
MailContent
100.00% covered (success)
100.00%
46 / 46
100.00% covered (success)
100.00%
36 / 36
41
100.00% covered (success)
100.00%
1 / 1
 getKs
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setKs
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
 getSs
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSs
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
 getVs
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVs
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
 getCc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCc
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
 getTid
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTid
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
 getReceiverMessage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setReceiverMessage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDescription
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDescription
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCurrency
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCurrency
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getTransactionDate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTransactionDate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getAccountNumber
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAccountNumber
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSourceAccountNumber
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSourceAccountNumber
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getAmount
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAmount
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCid
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCid
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSign
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSign
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getAc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTxn
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getTxn
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2declare(strict_types=1);
3
4namespace Tomaj\BankMailsParser;
5
6class MailContent
7{
8    private $amount;
9
10    private $accountNumber;
11
12    private $sourceAccountNumber;
13
14    private $vs;
15
16    private $ss;
17
18    private $ks;
19
20    private $transactionDate;
21
22    private $currency;
23
24    private $receiverMessage;
25
26    private $description;
27
28    private $sign;
29
30    private $cid;
31
32    private $res;
33
34    private $ac;
35
36    private $cc;
37
38    private $tid;
39
40    private $txn;
41
42    private $rc;
43
44    public function getKs(): ?string
45    {
46        return $this->ks;
47    }
48
49    public function setKs(string $ks)
50    {
51        if ($ks == '') {
52            $ks = null;
53        }
54        $this->ks = $ks;
55    }
56
57    public function getSs(): ?string
58    {
59        return $this->ss;
60    }
61
62    public function setSs(string $ss)
63    {
64        if ($ss == '') {
65            $ss = null;
66        }
67        $this->ss = $ss;
68    }
69
70    public function getVs(): ?string
71    {
72        return $this->vs;
73    }
74
75    public function setVs(string $vs)
76    {
77        if ($vs == '') {
78            $vs = null;
79        }
80        $this->vs = $vs;
81    }
82
83    public function getCc(): ?string
84    {
85        return $this->cc;
86    }
87
88    public function setCc(string $cc)
89    {
90        if ($cc == '') {
91            $cc = null;
92        }
93        $this->cc = $cc;
94    }
95
96    public function getTid(): ?string
97    {
98        return $this->tid;
99    }
100
101    public function setTid(string $tid)
102    {
103        if ($tid == '') {
104            $tid = null;
105        }
106        $this->tid = $tid;
107    }
108
109    public function getReceiverMessage(): ?string
110    {
111        return $this->receiverMessage;
112    }
113
114    public function setReceiverMessage(string $receiverMessage)
115    {
116        $this->receiverMessage = $receiverMessage;
117    }
118
119    public function getDescription(): ?string
120    {
121        return $this->description;
122    }
123
124    public function setDescription(string $description)
125    {
126        $this->description = $description;
127    }
128
129    public function getCurrency(): ?string
130    {
131        return $this->currency;
132    }
133
134    public function setCurrency(string $currency)
135    {
136        $this->currency = $currency;
137    }
138
139    public function getTransactionDate() // TODO
140    {
141        return $this->transactionDate;
142    }
143
144    public function setTransactionDate($transactionDate)
145    {
146        $this->transactionDate = $transactionDate;
147    }
148
149    public function getAccountNumber(): ?string
150    {
151        return $this->accountNumber;
152    }
153
154    public function setAccountNumber(string $accountNumber)
155    {
156        $this->accountNumber = $accountNumber;
157    }
158
159    public function getSourceAccountNumber(): ?string
160    {
161        return $this->sourceAccountNumber;
162    }
163
164    public function setSourceAccountNumber(string $sourceAccountNumber): void
165    {
166        $this->sourceAccountNumber = $sourceAccountNumber;
167    }
168
169    public function getAmount(): ?float
170    {
171        return $this->amount;
172    }
173
174    public function setAmount(float $amount)
175    {
176        $this->amount = $amount;
177    }
178
179    public function setCid(string $cid)
180    {
181        $this->cid = $cid;
182    }
183
184    public function getCid(): ?string
185    {
186        return $this->cid;
187    }
188
189    public function setSign(string $sign)
190    {
191        $this->sign = $sign;
192    }
193
194    public function getSign(): ?string
195    {
196        return $this->sign;
197    }
198
199    public function setRes(string $res)
200    {
201        $this->res = $res;
202    }
203
204    public function getRes(): ?string
205    {
206        return $this->res;
207    }
208
209    public function setAc(string $ac)
210    {
211        $this->ac = $ac;
212    }
213
214    public function getAc(): ?string
215    {
216        return $this->ac;
217    }
218
219    public function setTxn(string $txn)
220    {
221        $this->txn = $txn;
222    }
223
224    public function getTxn(): ?string
225    {
226        return $this->txn;
227    }
228
229    public function setRc(string $rc)
230    {
231        $this->rc = $rc;
232    }
233
234    public function getRc(): ?string
235    {
236        return $this->rc;
237    }
238}