1 | <?php |
||
24 | class NullEngine implements EngineInterface, NullObject |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Check whether the Findable can handle an individual criterion. |
||
29 | * |
||
30 | * @since 0.1.0 |
||
31 | * |
||
32 | * @param mixed $criterion Criterion to check. |
||
33 | * |
||
34 | * @return bool Whether the Findable can handle the criterion. |
||
35 | */ |
||
36 | public function canHandle($criterion) |
||
|
|||
37 | { |
||
38 | return true; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Render a given URI. |
||
43 | * |
||
44 | * @since 0.1.0 |
||
45 | * |
||
46 | * @param string $uri URI to render. |
||
47 | * @param array $context Context in which to render. |
||
48 | * |
||
49 | * @return string Rendered HTML. |
||
50 | */ |
||
51 | public function render($uri, array $context = []) |
||
55 | } |
||
56 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.