Test Failed
Pull Request — master (#187)
by Def
03:32
created

ColumnSchemaBuilder::setAlterColumnFormat()   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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Mssql;
6
7
use Yiisoft\Db\Schema\AbstractColumnSchemaBuilder;
8
9
final class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
10
{
11
    /**
12
     * Changes default format string to MSSQL ALTER COMMAND.
13
     */
14
    public function setAlterColumnFormat(): void
15
    {
16
        $this->format = '{type}{length}{notnull}{append}';
0 ignored issues
show
Bug Best Practice introduced by
The property format does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
17
    }
18
}
19