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

TOperandType   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A isOK() 0 8 2
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