Test Failed
Push — master ( c06ec5...9a90c3 )
by Alex
04:44
created

TEntityTypeModificationFunctionWithResultType::getResultBinding()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\mapping\cs;
4
5
use AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\Groups\TResultBindingGroup;
6
7
/**
8
 * Class representing TEntityTypeModificationFunctionWithResultType
9
 *
10
 * Extensions to modification function for entity type InsertFunction and UpdateFunction
11
 *
12
 * XSD Type: TEntityTypeModificationFunctionWithResult
13
 */
14
class TEntityTypeModificationFunctionWithResultType extends TEntityTypeModificationFunctionType
15
{
16
    use TResultBindingGroup;
17
18
    public function isOK(&$msg = null)
19
    {
20
        $result = parent::isOK($msg);
21
        if ($result) {
22
            if (!$this->isResultBindingGroupOK($msg)) {
23
                return false;
24
            }
25
        }
26
        return $result;
27
    }
28
}
29