1 | <?php |
||
10 | trait CompilerPreRenderTrait |
||
11 | { |
||
12 | protected $customVariables = []; |
||
13 | |||
14 | 12 | public function getCustomVariables() |
|
18 | |||
19 | /** |
||
20 | * Append custom variables that'll be made available as template variables in PageViews. |
||
21 | * |
||
22 | * @param array $customVariables |
||
23 | * |
||
24 | * @since 0.2.0 |
||
25 | */ |
||
26 | public function appendCustomVariables(array $customVariables) |
||
30 | } |
||
31 |
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.