RenderArgument::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Khusseini\PimcoreRadBrickBundle;
4
5
class RenderArgument
6
{
7
    /**
8
     * @var string
9
     */
10
    private $type;
11
12
    /**
13
     * @var string
14
     */
15
    private $name;
16
17
    /**
18
     * @var mixed
19
     */
20
    private $value;
21
22
    /**
23
     * @param mixed $value
24
     */
25 28
    public function __construct(
26
        string $type,
27
        string $name,
28
        $value = null
29
    ) {
30 28
        $this->type = $type;
31 28
        $this->name = $name;
32 28
        $this->value = $value;
33 28
    }
34
35 12
    public function getType(): string
36
    {
37 12
        return $this->type;
38
    }
39
40 27
    public function getName(): string
41
    {
42 27
        return $this->name;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48 18
    public function getValue()
49
    {
50 18
        return $this->value;
51
    }
52
}
53