| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function listAction() |
||
| 31 | { |
||
| 32 | |||
| 33 | $channel = $this->params()->fromRoute('channel','default'); |
||
| 34 | |||
| 35 | /* @var Paginator $paginator */ |
||
| 36 | $paginator = $this->paginator('Jobs/Job', ['channel' => $channel ]); |
||
|
|
|||
| 37 | |||
| 38 | $viewModel=new ViewModel(); |
||
| 39 | $viewModel->setVariables( |
||
| 40 | [ |
||
| 41 | 'jobs' => $paginator, |
||
| 42 | 'channel' => $channel |
||
| 43 | ] |
||
| 44 | ); |
||
| 45 | |||
| 46 | $viewModel->setTemplate('jobs/export/feed'); |
||
| 47 | |||
| 48 | return $viewModel; |
||
| 49 | |||
| 50 | } |
||
| 51 | |||
| 53 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: