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

AbstractPart::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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