ObjectPathValue::getPropertyName()   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
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Peridot\Leo\ObjectPath;
4
5
/**
6
 * An ObjectPathValue is the result of parsing a path expression via ObjectPath.
7
 *
8
 * @package Peridot\Leo\Utility
9
 */
10
class ObjectPathValue
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $propertyName;
16
17
    /**
18
     * @var mixed
19
     */
20
    protected $propertyValue;
21
22
    /**
23
     * @param $name
24
     * @param $value
25
     */
26
    public function __construct($name, $value)
27
    {
28
        $this->propertyName = $name;
29
        $this->propertyValue = $value;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getPropertyName()
36
    {
37
        return $this->propertyName;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function getPropertyValue()
44
    {
45
        return $this->propertyValue;
46
    }
47
}
48