Code Duplication    Length = 20-20 lines in 2 locations

lib/Db/Asset.php 1 location

@@ 38-57 (lines=20) @@
35
 * @method void setTimestamp(int $timestamp)
36
 * @method int getTimestamp()
37
 */
38
class Asset extends Entity {
39
	/** @var string */
40
	protected $uid;
41
42
	/** @var int */
43
	protected $fileid;
44
45
	/** @var string */
46
	protected $token;
47
48
	/** @var int */
49
	protected $timestamp;
50
51
	public function __construct() {
52
		$this->addType('uid', 'string');
53
		$this->addType('fileid', 'int');
54
		$this->addType('token', 'string');
55
		$this->addType('timestamp', 'int');
56
	}
57
}
58

lib/Db/Direct.php 1 location

@@ 38-57 (lines=20) @@
35
 * @method void setTimestamp(int $timestamp)
36
 * @method int getTimestamp()
37
 */
38
class Direct extends Entity {
39
	/** @var string */
40
	protected $token;
41
42
	/** @var string */
43
	protected $uid;
44
45
	/** @var int */
46
	protected $fileid;
47
48
	/** @var int */
49
	protected $timestamp;
50
51
	public function __construct() {
52
		$this->addType('token', 'string');
53
		$this->addType('uid', 'string');
54
		$this->addType('fileid', 'int');
55
		$this->addType('timestamp', 'int');
56
	}
57
}
58