1 | <?php |
||
17 | class PHPEngine implements Engine |
||
18 | { |
||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | public function render($template_pathname, $thisArg, array $variables, array $options = []) |
||
47 | |||
48 | /** |
||
49 | * Ensures that a value is an object. |
||
50 | * |
||
51 | * - `value` is an object, value is returned. |
||
52 | * - `value` is an array, an `ArrayObject` instance is returned. |
||
53 | * - Otherwise `value` is cast into a string and a {@link String} instance is returned. |
||
54 | * |
||
55 | * @param $value |
||
56 | * |
||
57 | * @return \ArrayObject|StringObject |
||
58 | */ |
||
59 | protected function ensure_is_object($value) |
||
73 | } |
||
74 |