| 1 | <?php |
||
| 8 | class DocumentTransformer extends TransformerAbstract |
||
| 9 | { |
||
| 10 | protected $defaultIncludes = ['body']; |
||
| 11 | |||
| 12 | public function transform(Document $document) |
||
| 20 | |||
| 21 | public function includeBody(Document $document) |
||
| 35 | |||
| 36 | // body transformations |
||
| 37 | protected function single_line_breaks($body) |
||
| 41 | } |
||
| 42 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.