Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function toArray(): array |
||
24 | { |
||
25 | $isRunnable = ($this->solution instanceof RunnableSolution); |
||
26 | |||
27 | return [ |
||
28 | 'class' => get_class($this->solution), |
||
29 | 'title' => $this->solution->getSolutionTitle(), |
||
30 | 'description' => $this->solution->getSolutionDescription(), |
||
31 | 'links' => $this->solution->getDocumentationLinks(), |
||
32 | 'action_description' => $isRunnable ? $this->solution->getSolutionActionDescription() : null, |
||
33 | 'is_runnable' => $isRunnable, |
||
34 | ]; |
||
35 | } |
||
36 | } |
||
37 |