| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 17 | public function __construct(  | 
            ||
| 18 | $var,  | 
            ||
| 19 | string $needType,  | 
            ||
| 20 | int $code = 0,  | 
            ||
| 21 | \Throwable $previous = null  | 
            ||
| 22 |     ) { | 
            ||
| 23 | $this->var = $var;  | 
            ||
| 24 | $this->needType = $needType;  | 
            ||
| 25 | |||
| 26 | $objectType = get_class($var);  | 
            ||
| 27 | |||
| 28 | parent::__construct(  | 
            ||
| 29 |             "Element {$objectType} must be instance of " . $needType, | 
            ||
| 30 | $code,  | 
            ||
| 31 | $previous  | 
            ||
| 32 | );  | 
            ||
| 45 |