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

isTParameterTypeSemanticsValid()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.2
cc 4
eloc 8
nc 4
nop 1
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
}