Passed
Push — master ( 7c438c...2c13cb )
by Alex
01:26
created

ODataNavigationPropertyInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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