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

ColumnIsEmpty::getLogMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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
}