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

ReferenceOperation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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 ReferenceOperation extends TableOperation
11
{
12
    /**
13
     * Column foreign key associated to.
14
     *
15
     * @var string
16
     */
17
    protected $column = '';
18
19
    /**
20
     * @param string|null $database
21
     * @param string      $table
22
     * @param string      $column
23
     */
24
    public function __construct($database, string $table, string $column)
25
    {
26
        parent::__construct($database, $table);
27
28
        $this->column = $column;
29
    }
30
}