Completed
Push — master ( 2a503e...626ee6 )
by Kit Loong
01:12
created

TimestampTzType::getSQLDeclaration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: liow.kitloong
5
 */
6
7
namespace KitLoong\MigrationsGenerator\Types;
8
9
use Doctrine\DBAL\Platforms\AbstractPlatform;
10
use Doctrine\DBAL\Types\Type;
11
use KitLoong\MigrationsGenerator\MigrationMethod\ColumnType;
12
13
class TimestampTzType extends Type
14
{
15
16
    /**
17
     * @inheritDoc
18
     */
19
    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
20
    {
21
        return 'TIMESTAMPTZ';
22
    }
23
24
    /**
25
     * @inheritDoc
26
     */
27
    public function getName()
28
    {
29
        return ColumnType::TIMESTAMP_TZ;
30
    }
31
}
32