WhatsNewResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Analytics
5
 *
6
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
7
 * SPDX-License-Identifier: AGPL-3.0-or-later
8
 */
9
10
namespace OCA\Analytics\WhatsNew;
11
12
use OCP\AppFramework\Db\Entity;
0 ignored issues
show
Bug introduced by
The type OCP\AppFramework\Db\Entity was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
14
/**
15
 * Class ChangesResult
16
 *
17
 * @package OC\Updater
18
 * @method string getVersion()= 1
19
 * @method void setVersion(string $version)
20
 * @method string getEtag()
21
 * @method void setEtag(string $etag)
22
 * @method int getLastCheck()
23
 * @method void setLastCheck(int $lastCheck)
24
 * @method string getData()
25
 * @method void setData(string $data)
26
 */
27
class WhatsNewResult extends Entity
28
{
29
    /** @var string */
30
    protected $version = '';
31
32
    /** @var string */
33
    protected $etag = '';
34
35
    /** @var int */
36
    protected $lastCheck = 0;
37
38
    /** @var string */
39
    protected $data = '';
40
41
    public function __construct()
42
    {
43
        $this->addType('version', 'string');
44
        $this->addType('etag', 'string');
45
        $this->addType('lastCheck', 'int');
46
        $this->addType('data', 'string');
47
    }
48
}