Passed
Push — master ( feaee9...2b3e4e )
by Alex
04:28
created

TOperandType::isOK()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
use AlgoWeb\ODataMetadata\IsOK;
6
use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GExpressionTrait;
7
use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GInlineExpressionsTrait;
8
9
/**
10
 * Class representing TOperandType
11
 *
12
 *
13
 * XSD Type: TOperand
14
 */
15
class TOperandType extends IsOK
16
{
17
    use GInlineExpressionsTrait, GExpressionTrait;
18
19
    public function __construct()
20
    {
21
        $this->gExpressionMaximum = 1;
22
    }
23
    
24
    public function isOK(&$msg = null)
25
    {
26
        if (!$this->isGInlineExpressionsValid($msg)) {
27
            return false;
28
        }
29
30
        return true;
31
    }
32
}
33