Passed
Push — master ( 902adb...3cf321 )
by Christoph
10:44 queued 11s
created

RecentContact   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 27
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * @copyright 2020 Christoph Wurst <[email protected]>
7
 *
8
 * @author 2020 Christoph Wurst <[email protected]>
9
 *
10
 * @license GNU AGPL version 3 or any later version
11
 *
12
 * This program is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU Affero General Public License as
14
 * published by the Free Software Foundation, either version 3 of the
15
 * License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU Affero General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU Affero General Public License
23
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
 */
25
26
namespace OCA\ContactsInteraction\Db;
27
28
use OCP\AppFramework\Db\Entity;
29
30
/**
31
 * @method void setActorUid(string $uid)
32
 * @method string|null getActorUid()
33
 * @method void setUid(string $uid)
34
 * @method string|null getUid()
35
 * @method void setEmail(string $email)
36
 * @method string|null getEmail()
37
 * @method void setFederatedCloudId(string $federatedCloudId)
38
 * @method string|null getFederatedCloudId()
39
 * @method void setCard(string $card)
40
 * @method string getCard()
41
 * @method void setLastContact(int $lastContact)
42
 * @method int getLastContact()
43
 */
44
class RecentContact extends Entity {
45
46
	/** @var string */
47
	protected $actorUid;
48
49
	/** @var string|null */
50
	protected $uid;
51
52
	/** @var string|null */
53
	protected $email;
54
55
	/** @var string|null */
56
	protected $federatedCloudId;
57
58
	/** @var string */
59
	protected $card;
60
61
	/** @var int */
62
	protected $lastContact;
63
64
	public function __construct() {
65
		$this->addType('actorUid', 'string');
66
		$this->addType('uid', 'string');
67
		$this->addType('email', 'string');
68
		$this->addType('federatedCloudId', 'string');
69
		$this->addType('card', 'string');
70
		$this->addType('lastContact', 'int');
71
	}
72
73
}
74