Passed
Push — master ( bff06a...77db42 )
by Alexander
01:45
created

ColumnSchemaBuilderTest::getColumnSchemaBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Pgsql\Tests;
6
7
use Yiisoft\Db\Schemas\ColumnSchemaBuilder;
8
use Yiisoft\Db\Tests\ColumnSchemaBuilderTest as AbstractColumnSchemaBuilderTest;
9
10
class ColumnSchemaBuilderTest extends AbstractColumnSchemaBuilderTest
11
{
12
    public ?string $driverName = 'pgsql';
13
14
    /**
15
     * @param string $type
16
     * @param int $length
17
     *
18
     * @return ColumnSchemaBuilder
19
     */
20
    public function getColumnSchemaBuilder($type, $length = null)
21
    {
22
        return new ColumnSchemaBuilder($type, $length, $this->getConnection());
23
    }
24
}
25