Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
19 | public function hash(): string |
||
20 | { |
||
21 | if ($this->get() instanceof Hashable) { |
||
22 | return $this->doHash(\gettype($this->get()) . \get_class($this->get()) . $this->get()->hash()); |
||
23 | } |
||
24 | |||
25 | return $this->doHash(\gettype($this->get()) . \get_class($this->get()) . \spl_object_hash($this->get())); |
||
26 | } |
||
27 | |||
60 |