NumericColumn::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
4
namespace Cocur\Arff\Column;
5
6
/**
7
 * NumericColumn
8
 *
9
 * @package   Cocur\Arff\Column
10
 * @author    Florian Eckerstorfer
11
 * @copyright 2015 Florian Eckerstorfer
12
 */
13
class NumericColumn extends AbstractColumn
14
{
15
    /**
16
     * @param string|null $name
17
     */
18 1
    public function __construct($name = null)
19
    {
20 1
        if ($name !== null) {
21 1
            $this->setName($name);
22
        }
23 1
    }
24
25
    /**
26
     * @return string
27
     */
28 1
    public function getType()
29
    {
30 1
        return 'numeric';
31
    }
32
}
33