Completed
Push — master ( c2785f...c09443 )
by Kirill
07:19
created

Output::getValue()   A

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
 * 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\Adapters\Webonyx;
11
12
use Railt\Adapters\OutputInterface;
13
14
/**
15
 * Class Output
16
 * @package Railt\Adapters\Webonyx
17
 */
18
class Output implements OutputInterface
19
{
20
    /**
21
     * @var mixed
22
     */
23
    private $value;
24
25
    /**
26
     * @var mixed
27
     */
28
    private $parent;
29
30
    /**
31
     * Output constructor.
32
     * @param $value
33
     * @param $parent
34
     */
35
    public function __construct($value, $parent)
36
    {
37
        $this->value = $value;
38
        $this->parent = $parent;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getValue()
45
    {
46
        return $this->value;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52
    public function getParentValue()
53
    {
54
        return $this->parent;
55
    }
56
}
57