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