BuilderContainer::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PhpJsonRpc\Server\ResponseBuilder;
4
5
use PhpJsonRpc\Common\Interceptor\AbstractContainer;
6
use PhpJsonRpc\Server\ResponseBuilder;
7
8
class BuilderContainer extends AbstractContainer
9
{
10
    /**
11
     * @var ResponseBuilder
12
     */
13
    private $builder;
14
15
    /**
16
     * @var mixed
17
     */
18
    private $value;
19
20
    /**
21
     * PostBuildContainer constructor.
22
     *
23
     * @param ResponseBuilder $builder
24
     * @param mixed           $value
25
     */
26
    public function __construct(ResponseBuilder $builder, $value)
27
    {
28
        $this->builder = $builder;
29
        $this->value   = $value;
30
    }
31
32
    /**
33
     * @return ResponseBuilder
34
     */
35
    public function getBuilder(): ResponseBuilder
36
    {
37
        return $this->builder;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function getValue()
44
    {
45
        return $this->value;
46
    }
47
}
48