Conditions | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public static function createWithCallback(callable $callback): View |
||
28 | { |
||
29 | $presentationModel = new class extends PresentationModel implements HasPresenterInterface |
||
30 | { |
||
31 | protected $variable = ''; |
||
32 | |||
33 | public function getPresenterName(): string |
||
34 | { |
||
35 | return 'MockPresenter'; |
||
36 | } |
||
37 | }; |
||
38 | |||
39 | return new View('template.twig', $presentationModel, $callback); |
||
40 | } |
||
42 |