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

AbstractOperation::getTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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