Test Failed
Pull Request — master (#5)
by aguevaraIL
07:24
created

m170101_000001_workflow::columns()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
use roaresearch\yii2\rmdb\migrations\CreatePersistentEntity;
4
5
class m170101_000001_workflow extends CreatePersistentEntity
6
{
7
    /**
8
     * @inhertidoc
9
     */
10
    public function getTableName(): string
11
    {
12
        return 'workflow';
13
    }
14
15
    /**
16
     * @inhertidoc
17
     */
18
    public function columns(): array
19
    {
20
        return [
21
            'id' => $this->primaryKey(),
22
            'name' => $this->string(64)->unique()->notNull(),
23
        ];
24
    }
25
}
26