Passed
Push — master ( b11de1...a4dac5 )
by eXeCUT
09:39
created

ColumnIsEmpty   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLogMessage() 0 2 1
A getLogCategory() 0 3 1
1
<?php
2
namespace execut\import\components\parser\exception;
3
4
5
class ColumnIsEmpty extends Exception
6
{
7
    public $attribute = null;
8 1
    public function getLogMessage() {
9 1
        return 'Column ' . ($this->columnNbr + 1) . ' for attribute ' . $this->attribute . ' is empty';
10
    }
11
12 1
    public function getLogCategory()
13
    {
14 1
        return 'import.columnNotFound.' . $this->attribute . '.' . ($this->columnNbr + 1);
15
    }
16
}