Completed
Pull Request — master (#68)
by Christopher
03:45
created

ODataNavigationPropertyInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
namespace POData\ObjectModel;
4
5
use POData\Providers\Metadata\ResourceProperty;
6
7
/**
8
 * Class ODataNavigationPropertyInfo A type to hold navigation information.
9
 */
10
class ODataNavigationPropertyInfo
11
{
12
    public $resourceProperty;
13
    public $expanded;
14
    public $value;
15
16
    /**
17
     * Constructs a new instance of ODataNavigationPropertyInfo.
18
     *
19
     * @param ResourceProperty &$resourceProperty Metadata of the
20
     *                                            navigation property
21
     * @param bool             $expanded          Whether the navigation is expanded
22
     *                                            or not
23
     */
24
    public function __construct(ResourceProperty & $resourceProperty, $expanded)
25
    {
26
        $this->resourceProperty = $resourceProperty;
27
        $this->expanded = $expanded;
28
        $this->value = null;
29
    }
30
}
31