Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
12 / 12 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Project | |
100.00% |
12 / 12 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
12 / 12 |
|
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 | /** |
| 18 | * @method string getId() |
| 19 | * @method void setId(string $id) |
| 20 | * @method string getUserid() |
| 21 | * @method void setUserid(string $userid) |
| 22 | * @method string getName() |
| 23 | * @method void setName(string $name) |
| 24 | */ |
| 25 | class Project extends Entity { |
| 26 | |
| 27 | protected $userid; |
| 28 | protected $name; |
| 29 | protected $email; |
| 30 | protected $password; |
| 31 | protected $autoexport; |
| 32 | protected $lastchanged; |
| 33 | protected $guestaccesslevel; |
| 34 | protected $deletiondisabled; |
| 35 | protected $categorysort; |
| 36 | protected $paymentmodesort; |
| 37 | protected $currencyname; |
| 38 | |
| 39 | public function __construct() { |
| 40 | $this->addType('id', 'string'); |
| 41 | $this->addType('userid', 'string'); |
| 42 | $this->addType('name', 'string'); |
| 43 | $this->addType('email', 'string'); |
| 44 | $this->addType('password', 'string'); |
| 45 | $this->addType('autoexport', 'string'); |
| 46 | $this->addType('lastchanged', 'integer'); |
| 47 | $this->addType('guestaccesslevel', 'integer'); |
| 48 | $this->addType('deletiondisabled', 'integer'); |
| 49 | $this->addType('categorysort', 'string'); |
| 50 | $this->addType('paymentmodesort', 'string'); |
| 51 | $this->addType('currencyname', 'string'); |
| 52 | } |
| 53 | } |