1 | <?php |
||
25 | class NullView implements ViewInterface, NullObject, Findable |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * Check whether the Findable can handle an individual criterion. |
||
30 | * |
||
31 | * @since 0.1.0 |
||
32 | * |
||
33 | * @param mixed $criterion Criterion to check. |
||
34 | * |
||
35 | * @return bool Whether the Findable can handle the criterion. |
||
36 | */ |
||
37 | public function canHandle($criterion) |
||
41 | |||
42 | /** |
||
43 | * Render the view. |
||
44 | * |
||
45 | * @since 0.1.0 |
||
46 | * |
||
47 | * @param array $context Optional. The context in which to render the view. |
||
48 | * @param bool $echo Optional. Whether to echo the output immediately. Defaults to false. |
||
49 | * |
||
50 | * @return string|void Rendered HTML or nothing, depending on $echo argument. |
||
51 | */ |
||
52 | 1 | public function render(array $context = [], $echo = false) |
|
58 | } |
||
59 |