Completed
Branch feature/pre-split (67216b)
by Anton
03:22
created

IndexOperation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Spiral Framework.
4
 *
5
 * @license   MIT
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
namespace Spiral\Migrations\Operations;
9
10
abstract class IndexOperation extends TableOperation
11
{
12
    /**
13
     * Columns index associated to, order matter!
14
     *
15
     * @var array
16
     */
17
    protected $columns = [];
18
19
    /**
20
     * @param string|null $database
21
     * @param string      $table
22
     * @param array       $columns
23
     */
24
    public function __construct($database, string $table, array $columns)
25
    {
26
        parent::__construct($database, $table);
27
28
        $this->columns = $columns;
29
    }
30
}