BaseTestCase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSupportedTypes() 0 10 1
1
<?php
2
3
namespace Tests\PHPSA\Compiler\Expression\Operators\Comparison;
4
5
use PhpParser\Node;
6
use PHPSA\CompiledExpression;
7
use PHPSA\Compiler\Expression;
8
use Tests\PHPSA\Compiler\Expression\AbstractBinaryOp;
9
10
abstract class BaseTestCase extends AbstractBinaryOp
11
{
12
    /**
13
     * @return array
14
     */
15
    protected function getSupportedTypes()
16
    {
17
        return [
18
            CompiledExpression::INTEGER,
19
            CompiledExpression::DOUBLE,
20
            CompiledExpression::STRING,
21
            CompiledExpression::BOOLEAN,
22
            CompiledExpression::NULL,
23
        ];
24
    }
25
}
26