Passed
Push — master ( e59540...9f1466 )
by Christopher
06:58 queued 03:16
created

TParameterTypeSemanticsTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isTParameterTypeSemanticsValid() 0 13 4
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Doc
5
 * Date: 5/1/2017
6
 * Time: 11:40 PM
7
 */
8
9
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\IsOKTraits;
10
11
12
trait TParameterTypeSemanticsTrait
13
{
14
    public function isTParameterTypeSemanticsValid($string)
15
    {
16
        if ("ExactMatchOnly" == $string) {
17
            return true;
18
        }
19
        if ("AllowImplicitPromotion" == $string) {
20
            return true;
21
        }
22
        if ("AllowImplicitConversion" == $string) {
23
            return true;
24
        }
25
        return false;
26
    }
27
}