ObjectType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
namespace Desmond\data_types;
3
4
class ObjectType extends AbstractAtom
5
{
6 16
    public function __construct($object)
7
    {
8 16
        $this->setValue($object);
9 16
    }
10
11 1
    public function __toString()
12
    {
13 1
        return '#object ' . get_class($this->value());
14
    }
15
}
16