Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
66.67% |
2 / 3 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
ObjectType | |
66.67% |
2 / 3 |
|
50.00% |
1 / 2 |
2.15 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
__toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Apie\ApieBundle\DataCollector\FieldData; |
4 | |
5 | class ObjectType extends AbstractFieldData |
6 | { |
7 | public function __construct( |
8 | object $value |
9 | ) { |
10 | $this->data = spl_object_hash($value); |
11 | $this->typehint = get_debug_type($value); |
12 | } |
13 | |
14 | public function __toString(): string |
15 | { |
16 | return 'Object(' . $this->typehint . ')'; |
17 | } |
18 | } |