AbstractBackendInterface   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 89
ccs 0
cts 30
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getIdentifier() 0 4 1
A getType() 0 4 1
A getClassName() 0 4 1
A getConfiguration() 0 4 1
A getStatus() 0 4 1
A getBackend() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Filoucrackeur\StorageFrameworkManager\Domain\Model\Dto;
5
6
use Filoucrackeur\StorageFrameworkManager\Type\Backend\Status;
7
8
abstract class AbstractBackendInterface implements BackendInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $identifier;
14
15
    /**
16
     * @var string
17
     */
18
    protected $type;
19
20
    /**
21
     * @var string
22
     */
23
    protected $className;
24
25
    /**
26
     * @var array
27
     */
28
    protected $configuration;
29
30
    /**
31
     * @var Status
32
     */
33
    protected $status;
34
35
    /**
36
     * @var
37
     */
38
    private $backend;
39
40
    /**
41
     * @param string $identifier
42
     * @param string $className
43
     * @param array $configuration
44
     */
45
    public function __construct(string $identifier, string $className, array $configuration)
46
    {
47
        $this->identifier = $identifier;
48
        $this->className = $className;
49
        $this->configuration = $configuration;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getIdentifier(): string
56
    {
57
        return $this->identifier;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getType(): string
64
    {
65
        return $this->type;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getClassName(): string
72
    {
73
        return $this->className;
74
    }
75
76
    /**
77
     * @return array
78
     */
79
    public function getConfiguration(): array
80
    {
81
        return $this->configuration;
82
    }
83
84
    /**
85
     * @return string
86
     */
87
    public function getStatus(): string
88
    {
89
        return $this->status;
90
    }
91
92
    public function getBackend()
93
    {
94
        return $this->backend;
95
    }
96
}
97