Conditions | 5 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 6 |
Ratio | 30 % |
Changes | 0 |
1 | <?php |
||
22 | ) { |
||
23 | $this->template = $template; |
||
24 | $this->factory = $factory; |
||
25 | $this->collection = $collection; |
||
26 | $this->viewType = $viewType; |
||
27 | $this->viewOptions = $viewOptions; |
||
28 | } |
||
29 | |||
30 | public function getTemplate(): string |
||
31 | { |
||
32 | return $this->template; |
||
33 | } |
||
34 | |||
35 | public function current() |
||
36 | { |
||
37 | return $this->factory->create( |
||
38 | $this->viewType, |
||
39 | current($this->collection), |
||
40 | $this->viewOptions |
||
41 | ); |
||
42 | } |
||
64 |