AbstractOperation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 2
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getTable() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Migrations\Operation;
6
7
use Cycle\Migrations\OperationInterface;
8
9
abstract class AbstractOperation implements OperationInterface
10
{
11 408
    public function __construct(protected string $table)
12
    {
13
    }
14
15
    /**
16
     * {@inheritdoc}
17
     */
18 400
    public function getTable(): string
19
    {
20 400
        return $this->table;
21
    }
22
}
23