1 | <?php |
||
12 | class Php implements EngineInterface { |
||
13 | /** |
||
14 | * {@inheritDoc} |
||
15 | */ |
||
16 | 1 | public function exists( $view ) { |
|
20 | |||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | */ |
||
24 | 6 | public function render( $views, $context ) { |
|
48 | |||
49 | /** |
||
50 | * Resolve a view or a view array to an absolute filepath |
||
51 | * |
||
52 | * @param string $view |
||
53 | * @return string |
||
54 | */ |
||
55 | 1 | protected function resolveFile( $view ) { |
|
65 | |||
66 | /** |
||
67 | * Resolve the view if it exists on the filesystem |
||
68 | * |
||
69 | * @param string $view |
||
70 | * @return string |
||
71 | */ |
||
72 | 1 | protected function resolveFileFromFilesystem( $view ) { |
|
75 | |||
76 | /** |
||
77 | * Resolve an array of views to the first existing view and it's filepath |
||
78 | * |
||
79 | * @param string[] $views |
||
80 | * @return array|null |
||
|
|||
81 | */ |
||
82 | 2 | protected function resolveViewAndFile( $views ) { |
|
103 | } |
||
104 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.