| Total Complexity | 11 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class Page extends \Inji\View\Parser { |
||
| 5 | /** |
||
| 6 | * @var \Inji\View\Page |
||
| 7 | */ |
||
| 8 | public $page; |
||
| 9 | |||
| 10 | function __construct(\Inji\View\Page $page) { |
||
| 11 | $this->page = $page; |
||
| 12 | } |
||
| 13 | |||
| 14 | function parse() { |
||
| 24 | } |
||
| 25 | |||
| 26 | function contentTag() { |
||
| 28 | } |
||
| 29 | |||
| 30 | function titleTag() { |
||
| 32 | } |
||
| 33 | |||
| 34 | function widgetTag($widgetName, $params) { |
||
| 35 | return $this->page->app->view->widget($widgetName, ['params' => $params], ':' . implode(':', $params)); |
||
| 36 | } |
||
| 37 | |||
| 38 | function headTag() { |
||
| 40 | } |
||
| 41 | |||
| 42 | function pageTag($pageName) { |
||
| 44 | } |
||
| 45 | |||
| 46 | function bodyendTag() { |
||
| 47 | return $this->page->bodyEnd(); |
||
| 48 | } |
||
| 49 | |||
| 50 | function template_pathTag() { |
||
| 52 | } |
||
| 53 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.