1 | <?php |
||
26 | class NullView implements View, NullFindable |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Check whether the Findable can handle an individual criterion. |
||
31 | * |
||
32 | * @since 0.1.0 |
||
33 | * |
||
34 | * @param mixed $criterion Criterion to check. |
||
35 | * |
||
36 | * @return bool Whether the Findable can handle the criterion. |
||
37 | */ |
||
38 | public function canHandle($criterion) |
||
42 | |||
43 | /** |
||
44 | * Render the view. |
||
45 | * |
||
46 | * @since 0.1.0 |
||
47 | * |
||
48 | * @param array $context Optional. The context in which to render the view. |
||
49 | * @param bool $echo Optional. Whether to echo the output immediately. Defaults to false. |
||
50 | * |
||
51 | * @return string|void Rendered HTML or nothing, depending on $echo argument. |
||
52 | */ |
||
53 | 1 | public function render(array $context = [], $echo = false) |
|
59 | |||
60 | /** |
||
61 | * Render a partial view for a given URI. |
||
62 | * |
||
63 | * @since 0.2.0 |
||
64 | * |
||
65 | * @param string $view View identifier to create a view for. |
||
66 | * @param array $context Optional. The context in which to render the view. |
||
67 | * @param string|null $type Type of view to create. |
||
68 | * |
||
69 | * @return string Rendered HTML content. |
||
70 | */ |
||
71 | public function renderPart($view, array $context = [], $type = null) |
||
75 | |||
76 | /** |
||
77 | * Associate a view builder with this view. |
||
78 | * |
||
79 | * @since 0.2.0 |
||
80 | * |
||
81 | * @param ViewBuilder $builder |
||
82 | * |
||
83 | * @return static |
||
84 | */ |
||
85 | public function setBuilder(ViewBuilder $builder) |
||
89 | } |
||
90 |