| Conditions | 3 |
| Paths | 3 |
| Total Lines | 23 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function indexAction() |
||
| 38 | { |
||
| 39 | /** @var string|null $id */ |
||
| 40 | $id = $this->params('id'); |
||
| 41 | $resume = $this->repository->find($id); |
||
| 42 | |||
| 43 | if (!$resume) { |
||
| 44 | throw new \Exception('No resume found with id ' . $id); |
||
| 45 | } |
||
| 46 | |||
| 47 | /* @todo REMOVE THIS |
||
| 48 | * @codeCoverageIgnoreStart */ |
||
| 49 | if (!$resume->getDateCreated()) { |
||
| 50 | $resume->setDateCreated(); |
||
| 51 | } |
||
| 52 | /* @codeCoverageIgnoreEnd */ |
||
| 53 | |||
| 54 | $this->acl($resume, 'view'); |
||
|
|
|||
| 55 | |||
| 56 | return [ |
||
| 57 | 'resume' => $resume |
||
| 58 | ]; |
||
| 59 | } |
||
| 60 | |||
| 61 | } |
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: