Completed
Push — master ( e32077...7e7359 )
by Tõnis
02:36
created

QueryBuilderHelper::getTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace andmemasin\helpers;
4
5
6
class QueryBuilderHelper
7
{
8
    const TYPE_STRING = 'string';
9
    const TYPE_INTEGER = 'integer';
10
    const TYPE_DOUBLE = 'double';
11
    const TYPE_DATE = 'date';
12
    const TYPE_TIME = 'time';
13
    const TYPE_DATETIME = 'datetime';
14
    const TYPE_BOOLEAN = 'boolean';
15
16
    public static function getTypes(){
17
        return [
18
            self::TYPE_STRING => 'String',
19
            self::TYPE_INTEGER => 'Integer',
20
            self::TYPE_DOUBLE => 'Double',
21
            self::TYPE_DATE => 'Date',
22
            self::TYPE_DATETIME => 'datetime',
23
            self::TYPE_BOOLEAN => 'boolean',
24
        ];
25
    }
26
27
}