Passed
Branch feature-validator (c7b310)
by Thomas
02:41
created

NotNullable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace ORM\Dbal\Error;
4
5
use ORM\Dbal\Column;
6
use ORM\Dbal\Error;
7
8
class NotNullable extends Error
9
{
10
    const ERROR_CODE = 'NOT_NULLABLE';
11
12
    protected $message = '%column% does not allow null values';
13
14 1
    public function __construct(Column $column)
15
    {
16 1
        parent::__construct();
17
18 1
        $this->params['column'] = $column->name;
19 1
    }
20
}
21