WhatsNewResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Audioplayer
5
 *
6
 * This file is licensed under the Affero General Public License version 3 or
7
 * later. See the LICENSE.md file.
8
 *
9
 * @author Marcel Scherello <[email protected]>
10
 * @author Arthur Schiwon <[email protected]>
11
 * @copyright 2020 Marcel Scherello
12
 */
13
14
namespace OCA\audioplayer\WhatsNew;
15
16
use OCP\AppFramework\Db\Entity;
17
18
/**
19
 * Class ChangesResult
20
 *
21
 * @package OC\Updater
22
 * @method string getVersion()= 1
23
 * @method void setVersion(string $version)
24
 * @method string getEtag()
25
 * @method void setEtag(string $etag)
26
 * @method int getLastCheck()
27
 * @method void setLastCheck(int $lastCheck)
28
 * @method string getData()
29
 * @method void setData(string $data)
30
 */
31
class WhatsNewResult extends Entity
32
{
33
    /** @var string */
34
    protected $version = '';
35
36
    /** @var string */
37
    protected $etag = '';
38
39
    /** @var int */
40
    protected $lastCheck = 0;
41
42
    /** @var string */
43
    protected $data = '';
44
45
    public function __construct()
46
    {
47
        $this->addType('version', 'string');
48
        $this->addType('etag', 'string');
49
        $this->addType('lastCheck', 'int');
50
        $this->addType('data', 'string');
51
    }
52
}