Test Failed
Pull Request — master (#115)
by Alex
03:29
created

AssociationStubMonomorphic   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isCompatible() 0 7 2
1
<?php
2
3
namespace AlgoWeb\PODataLaravel\Models;
4
5
class AssociationStubMonomorphic extends AssociationStubBase
6
{
7
    public function isCompatible(AssociationStubBase $otherStub)
8
    {
9
        if (!parent::isCompatible($otherStub)) {
10
            return false;
11
        }
12
        return $this->getForeignField() === $otherStub->getKeyField();
13
    }
14
}
15