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