Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 14 | public function hash(): string |
|
31 | { |
||
32 | /** @var TypeError $value */ |
||
33 | 14 | $value = $this->value(); |
|
34 | |||
35 | $data = [ |
||
36 | 14 | 'message' => $value->getMessage(), |
|
37 | 14 | 'code' => $value->getCode(), |
|
38 | 14 | 'class' => $this->class(), |
|
39 | ]; |
||
40 | |||
41 | 14 | return $this->doHash($this->type() . $this->class() . implode('', $data)); |
|
42 | } |
||
72 |