Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class AppShortcut implements ShortcutInterface |
||
17 | { |
||
18 | public function getPlugins(): array |
||
19 | { |
||
20 | return [ |
||
21 | AppPayPlugin::class, |
||
22 | $this->buildResponse(), |
||
23 | ]; |
||
24 | } |
||
25 | |||
26 | protected function buildResponse(): PluginInterface |
||
27 | { |
||
28 | return new class() implements PluginInterface { |
||
29 | public function assembly(Rocket $rocket, Closure $next): Rocket |
||
40 | |||
41 | protected function buildHtml(Collection $payload): Response |
||
45 | }; |
||
46 | } |
||
47 | } |
||
48 |