Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
15 / 15 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Bill | |
100.00% |
15 / 15 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
15 / 15 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * Nextcloud - cospend |
5 | * |
6 | * This file is licensed under the Affero General Public License version 3 or |
7 | * later. See the COPYING file. |
8 | * |
9 | * @author Julien Veyssier <eneiluj@posteo.net |
10 | * @copyright Julien Veyssier 2019 |
11 | */ |
12 | |
13 | namespace OCA\Cospend\Db; |
14 | |
15 | use OCP\AppFramework\Db\Entity; |
16 | |
17 | class Bill extends Entity { |
18 | |
19 | protected $what; |
20 | protected $comment; |
21 | protected $payerid; |
22 | protected $timestamp; |
23 | protected $repeat; |
24 | protected $repeatallactive; |
25 | protected $projectid; |
26 | protected $amount; |
27 | protected $categoryid; |
28 | protected $paymentmode; |
29 | protected $paymentmodeid; |
30 | protected $lastchanged; |
31 | protected $repeatuntil; |
32 | protected $repeatfreq; |
33 | |
34 | public function __construct() { |
35 | $this->addType('id', 'integer'); |
36 | $this->addType('what', 'string'); |
37 | $this->addType('comment', 'string'); |
38 | $this->addType('payerid', 'integer'); |
39 | $this->addType('timestamp', 'integer'); |
40 | $this->addType('amount', 'float'); |
41 | $this->addType('repeat', 'string'); |
42 | $this->addType('repeatallactive', 'integer'); |
43 | $this->addType('projectid', 'string'); |
44 | $this->addType('categoryid', 'integer'); |
45 | $this->addType('paymentmode', 'string'); |
46 | $this->addType('paymentmodeid', 'integer'); |
47 | $this->addType('lastchanged', 'integer'); |
48 | $this->addType('repeatuntil', 'string'); |
49 | $this->addType('repeatfreq', 'integer'); |
50 | } |
51 | } |