Completed
Push — master ( a3e9c3...3a2779 )
by Korotkov
03:50 queued 02:11
created

AbstractPart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
c 0
b 0
f 0
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * @author  : Jagepard <[email protected]>
5
 * @license https://mit-license.org/ MIT
6
 */
7
8
namespace Creational\Builder\Hardware;
9
10
abstract class AbstractPart
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $value;
16
17
    /**
18
     * AbstractParameter constructor.
19
     * @param  string  $value
20
     */
21
    public function __construct(string $value)
22
    {
23
        $this->value = $value;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getValue(): string
30
    {
31
        return $this->value;
32
    }
33
}
34