Conditions | 2 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function handle(?string $encoded): self |
||
39 | { |
||
40 | try { |
||
41 | $task = $this->encoder->decode($encoded); |
||
42 | $this->output = $this->encoder->encode($task()); |
||
43 | } catch (Throwable $exception) { |
||
44 | $this->exception = $this->encoder->encode(new SerializeException($exception)); |
||
45 | } |
||
46 | |||
47 | return $this; |
||
48 | } |
||
95 |