Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| <?php | |
| namespace Bone\View; | |
| interface ViewEngineInterface | |
| { | |
| /** | |
| * ViewEngine constructor. | |
| * @param $viewPath | |
| * @param null $extension | |
| */ | |
| public function __construct($viewPath, $extension = null); | |
| /** | |
| * @param $view | |
| * @param $vars | |
| * @return mixed | |
| */ | |
| public function render($view, array $vars = []); | |
| /** | |
| * Add a new template folder for grouping templates under different namespaces. | |
| * @param string $name | |
| * @param string $directory | |
| * @param boolean $fallback | |
| * @return self | |
| */ | |
| public function addFolder($name, $directory, $fallback = false); | |
| } |