1 | <?php |
||
17 | class CompileProcessPreRenderPageView extends Event |
||
18 | { |
||
19 | const NAME = 'compile.process.prerender_pageview'; |
||
20 | |||
21 | private $customVariables = []; |
||
22 | private $pageViewType; |
||
23 | |||
24 | 12 | public function __construct($pageViewType) |
|
28 | |||
29 | public function getPageViewType() |
||
33 | |||
34 | 12 | public function getCustomVariables() |
|
43 | |||
44 | /** |
||
45 | * Append custom variables that'll be made available as template variables in PageViews. |
||
46 | * |
||
47 | * @param array $customVariables |
||
48 | * |
||
49 | * @since 0.2.0 |
||
50 | */ |
||
51 | public function appendCustomVariables(array $customVariables) |
||
55 | } |
||
56 |
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.