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) { |
||
34 | |||
35 | // body transformations |
||
36 | protected function single_line_breaks($body) { |
||
39 | } |
||
40 |
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
@return
annotation as described here.