Oci8Field::getScale()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Jpina\Oci8;
4
5
class Oci8Field implements Oci8FieldInterface
6
{
7
8
    private $name;
9
    private $precision;
10
    private $rawType;
11
    private $scale;
12
    private $size;
13
    private $type;
14
    private $value;
15
16
17 17
    public function __construct($name, $value, $size, $precision, $scale, $type, $rawType)
18
    {
19 17
        $this->name      = $name;
20 17
        $this->precision = $precision;
21 17
        $this->rawType   = $rawType;
22 17
        $this->scale     = $scale;
23 17
        $this->size      = $size;
24 17
        $this->type      = $type;
25 17
        $this->value     = $value;
26 17
    }
27
28 2
    public function getName()
29
    {
30 2
        return $this->name;
31
    }
32
33 2
    public function getPrecision()
34
    {
35 2
        return $this->precision;
36
    }
37
38 2
    public function getRawType()
39
    {
40 2
        return $this->rawType;
41
    }
42
43 2
    public function getScale()
44
    {
45 2
        return $this->scale;
46
    }
47
48 2
    public function getSize()
49
    {
50 2
        return $this->size;
51
    }
52
53 2
    public function getType()
54
    {
55 2
        return $this->type;
56
    }
57
58 4
    public function getValue()
59
    {
60 4
        return $this->value;
61
    }
62
63 2
    public function isNull()
64
    {
65 2
        return $this->getValue() === null;
66
    }
67
}
68