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

Output   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getValue() 0 4 1
A getParentValue() 0 4 1
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