TInt   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isEscapeRequired() 0 4 1
A format() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Puzzle\QueryBuilder\Types;
6
7
class TInt extends AbstractType
8
{
9 75
    public function isEscapeRequired(): bool
10
    {
11 75
        return false;
12
    }
13
14 80
    public function format($value)
15
    {
16 80
        return (int) $value;
17
    }
18
}
19