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

TMaxLengthFacetTrait::isTMaxLengthFacetValid()   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\XSDTopLevelTrait;
6
7
class TMaxLengthFacetTrait
8
{
9
    use TMaxTrait, XSDTopLevelTrait;
10
11
    public function isTMaxLengthFacetValid($string)
12
    {
13
        if (!$this->isTMaxValid($string)) {
14
            return true;
15
        }
16
        return $this->nonNegativeInteger($string);
17
    }
18
}
19