Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
18 | class View extends \yii\base\View implements ViewContextInterface |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public $defaultExtension = 'twig'; |
||
24 | |||
25 | protected $_viewPath; |
||
26 | |||
27 | public function getViewPath() |
||
28 | { |
||
29 | if ($this->_viewPath === null) { |
||
30 | $this->_viewPath = '@hidev/views'; |
||
31 | } |
||
32 | |||
33 | return $this->_viewPath; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Returns rendering context. |
||
38 | */ |
||
39 | public function getContext($context = null) |
||
42 | } |
||
43 | |||
44 | public function existsTemplate($template, $context = null) |
||
47 | } |
||
48 | |||
49 | public function render($template, $data = [], $context = null) |
||
52 | } |
||
53 | } |
||
54 |