RenderArgument   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 46
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getName() 0 3 1
A getValue() 0 3 1
A getType() 0 3 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