Passed
Push — master ( 8dd668...9643d3 )
by Alex
04:27
created

TCommandTextTrait::isTCommandTextValid()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
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\IsOKTraits;
4
5
use AlgoWeb\ODataMetadata\StringTraits\XMLStringTrait;
6
7
trait TCommandTextTrait
8
{
9
    use XMLStringTrait;
10
11
    public function isTCommandTextValid($string)
12
    {
13
        if (!is_string($string)) {
14
            throw new \InvalidArgumentException("Input must be a string");
15
        }
16
        return true;
17
    }
18
}
19