Test Failed
Pull Request — master (#315)
by Sergei
02:45
created

IntegerColumnSchema   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 2
b 0
f 0
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sequenceName() 0 3 1
A getSequenceName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Pgsql\Column;
6
7
use Yiisoft\Db\Schema\Column\IntegerColumnSchema as BaseIntegerColumnSchema;
0 ignored issues
show
Bug introduced by
The type Yiisoft\Db\Schema\Column\IntegerColumnSchema was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
final class IntegerColumnSchema extends BaseIntegerColumnSchema implements IntegerColumnSchemaInterface
10
{
11
    /**
12
     * @var string|null Name of an associated sequence if column is auto incremental.
13
     */
14
    private string|null $sequenceName = null;
15
16
    public function getSequenceName(): string|null
17
    {
18
        return $this->sequenceName;
19
    }
20
21
    public function sequenceName(string|null $sequenceName): void
22
    {
23
        $this->sequenceName = $sequenceName;
24
    }
25
}
26