Passed
Push — master ( 10a192...087136 )
by Aleksei
07:38 queued 05:42
created

AbstractOperation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 19
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getTable() 0 3 1
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license MIT
7
 * @author  Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Cycle\Migrations\Operation;
13
14
use Cycle\Migrations\OperationInterface;
15
16
abstract class AbstractOperation implements OperationInterface
17
{
18
    /** @var string */
19
    protected $table;
20
21
    /**
22
     * @param string $table
23
     */
24
    public function __construct(string $table)
25
    {
26
        $this->table = $table;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getTable(): string
33
    {
34
        return $this->table;
35
    }
36
}
37