Test Failed
Branch main (8f4107)
by Bingo
08:27 queued 02:15
created

ProcessEngineDetails   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 11
c 1
b 0
f 0
dl 0
loc 32
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getEdition() 0 3 1
A setEdition() 0 3 1
A __construct() 0 4 1
A setVersion() 0 3 1
A getVersion() 0 3 1
1
<?php
2
3
namespace Jabe\Engine\Impl\Util;
4
5
class ProcessEngineDetails
6
{
7
    public const EDITION_ENTERPRISE = "enterprise";
8
    public const EDITION_COMMUNITY = "community";
9
10
    protected $version;
11
    protected $edition;
12
13
    public function __construct(string $version, string $edition)
14
    {
15
        $this->version = $version;
16
        $this->edition = $edition;
17
    }
18
19
    public function getVersion(): string
20
    {
21
        return $this->version;
22
    }
23
24
    public function setVersion(string $version): void
25
    {
26
        $this->version = $version;
27
    }
28
29
    public function getEdition(): string
30
    {
31
        return $this->edition;
32
    }
33
34
    public function setEdition(string $edition): void
35
    {
36
        $this->edition = $edition;
37
    }
38
}
39