| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | trait PdfLetterControllerTrait |
||
| 21 | { |
||
| 22 | use AbstractControllerTrait; |
||
| 23 | |||
| 24 | public function generate() |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return \Nip\Records\AbstractModels\Record |
||
| 39 | */ |
||
| 40 | abstract protected function getLetterRecipientFromRequest(); |
||
| 41 | |||
| 42 | abstract protected function getLetterFromRecipient($recipient); |
||
| 43 | } |
||
| 44 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.