Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | class m170101_000004_workflow_transition_permission extends CreateEntity |
||
6 | { |
||
7 | /** |
||
8 | * @inhertidoc |
||
9 | */ |
||
10 | public function getTableName(): string |
||
11 | { |
||
12 | return 'workflow_transition_permission'; |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @inhertidoc |
||
17 | */ |
||
18 | public function columns(): array |
||
19 | { |
||
20 | return [ |
||
21 | 'source_stage_id' => $this->normalKey(), |
||
22 | 'target_stage_id' => $this->normalKey(), |
||
23 | 'permission' => $this->string()->notNull(), |
||
24 | ]; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @inhertidoc |
||
29 | */ |
||
30 | public function foreignKeys(): array |
||
38 | ] |
||
39 | ], |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inhertidoc |
||
45 | */ |
||
46 | public function compositePrimaryKeys(): array |
||
51 |