Completed
Push — master ( b2a65d...63a169 )
by Kirill
02:18
created

Container::getContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of Railt package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
declare(strict_types=1);
9
10
namespace Railt\SDL\Frontend\Context;
11
12
/**
13
 * Class Container
14
 */
15
class Container
16
{
17
    /**
18
     * @var ContextInterface
19
     */
20
    private $context;
21
22
    /**
23
     * @var mixed
24
     */
25
    private $value;
26
27
    /**
28
     * Container constructor.
29
     * @param ContextInterface $context
30
     * @param mixed $value
31
     */
32
    public function __construct(ContextInterface $context, $value = null)
33
    {
34
        $this->context = $context;
35
        $this->value = $value;
36
    }
37
38
    /**
39
     * @return ContextInterface
40
     */
41
    public function getContext(): ContextInterface
42
    {
43
        return $this->context;
44
    }
45
46
    /**
47
     * @param ContextInterface $context
48
     */
49
    public function setContext(ContextInterface $context): void
50
    {
51
        $this->context = $context;
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function getValue()
58
    {
59
        return $this->value;
60
    }
61
62
    /**
63
     * @param mixed $value
64
     */
65
    public function setValue($value): void
66
    {
67
        $this->value = $value;
68
    }
69
}
70