parameter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_label() 0 3 1
1
<?php
2
/**
3
 * @author CONTENT CONTROL http://www.contentcontrol-berlin.de/
4
 * @copyright CONTENT CONTROL http://www.contentcontrol-berlin.de/
5
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
6
 */
7
8
namespace midgard\portable\api;
9
10
/**
11
 * @property integer $id Local non-replication-safe database identifier
12
 * @property string $domain Namespace of the parameter
13
 * @property string $name Key of the parameter
14
 * @property string $value Value of the parameter
15
 * @property string $parentguid GUID of the object the parameter extends
16
 * @property string $guid
17
 */
18
class parameter extends mgdobject
19
{
20
    private int $id = 0;
0 ignored issues
show
introduced by
The private property $id is not used, and could be removed.
Loading history...
21
    protected string $guid = '';
22
23
    protected $domain = '';
24
    protected $name = '';
25
    protected $value = '';
26
    protected $parentguid = '';
27
28 2
    public function get_label() : string
29
    {
30 2
        return $this->domain . " " . $this->name;
31
    }
32
}
33