Completed
Pull Request — master (#23)
by Erin
03:28
created

ObjectPathValue::getPropertyName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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