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