-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathReportItem.php
More file actions
38 lines (31 loc) · 897 Bytes
/
ReportItem.php
File metadata and controls
38 lines (31 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
// db/author.php
namespace OCA\TimeTracker\Db;
use OCP\AppFramework\Db\Entity;
class ReportItem extends Entity {
public $id;
public $name;
public $details;
public $projectId;
public $userUid;
public $time;
public $ftime;
public $totalDuration;
public $project;
public $clientId;
public $client;
public $cost;
public function __construct() {
// add types in constructor
$this->addType('id', 'integer');
$this->addType('name', 'string');
$this->addType('details', 'string');
$this->addType('projectId', 'integer');
$this->addType('userUid', 'string');
$this->addType('time', 'string');
$this->addType('ftime', 'string');
$this->addType('totalDuration', 'integer');
$this->addType('project', 'string');
$this->addType('cost', 'integer');
}
}