Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function present(Context $context, PresentationModel $presentationModel): PresentationModel |
||
22 | { |
||
23 | if (!$this->hasData($presentationModel)) { |
||
24 | $presentationModel = $presentationModel->withVariables([ |
||
25 | 'name' => 'item', |
||
26 | 'description' => 'description', |
||
27 | ]); |
||
28 | } |
||
29 | |||
30 | return $presentationModel; |
||
31 | } |
||
33 |