Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| FileType | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Db; |
| 10 | |
| 11 | use OCP\AppFramework\Db\Entity; |
| 12 | use OCP\DB\Types; |
| 13 | |
| 14 | /** |
| 15 | * @method string getType() |
| 16 | * @method void setType(string $type) |
| 17 | * @method string getName() |
| 18 | * @method void setName(string $name) |
| 19 | * @method string getDescription() |
| 20 | * @method void setDescription(string $description) |
| 21 | */ |
| 22 | class FileType extends Entity { |
| 23 | public string $type = ''; |
| 24 | protected string $name = ''; |
| 25 | protected string $description = ''; |
| 26 | public function __construct() { |
| 27 | $this->addType('type', Types::STRING); |
| 28 | $this->addType('name', Types::STRING); |
| 29 | $this->addType('description', Types::STRING); |
| 30 | } |
| 31 | } |