Oci8Field   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 63
ccs 25
cts 25
cp 1
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getName() 0 4 1
A getPrecision() 0 4 1
A getRawType() 0 4 1
A getScale() 0 4 1
A getSize() 0 4 1
A getType() 0 4 1
A getValue() 0 4 1
A isNull() 0 4 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