Completed
Pull Request — master (#136)
by Alex
28:55 queued 09:58
created

MetadataManagerDummy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createAssocationFromNavigationProperty() 0 21 1
A getNamespace() 0 4 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\Tests;
4
5
use AlgoWeb\ODataMetadata\MetadataManager;
6
use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType;
7
use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType;
8
9
class MetadataManagerDummy extends MetadataManager
10
{
11
    public function createAssocationFromNavigationProperty(
12
        TEntityTypeType $principalType,
13
        TEntityTypeType $dependentType,
14
        TNavigationPropertyType $principalNavigationProperty,
15
        TNavigationPropertyType $dependentNavigationProperty = null,
16
        $principalMultiplicity,
0 ignored issues
show
Coding Style introduced by
Parameters which have default values should be placed at the end.

If you place a parameter with a default value before a parameter with a default value, the default value of the first parameter will never be used as it will always need to be passed anyway:

// $a must always be passed; it's default value is never used.
function someFunction($a = 5, $b) { }
Loading history...
17
        $dependentMultiplicity,
18
        array $principalConstraintProperty = null,
19
        array $dependentConstraintProperty = null
20
    ) {
21
        return parent::createAssocationFromNavigationProperty(
22
            $principalType,
23
            $dependentType,
24
            $principalNavigationProperty,
25
            $dependentNavigationProperty,
26
            $principalMultiplicity,
27
            $dependentMultiplicity,
28
            $principalConstraintProperty,
29
            $dependentConstraintProperty
30
        );
31
    }
32
33
    public function getNamespace()
34
    {
35
        return parent::getNamespace();
36
    }
37
}
38