| Total Complexity | 10 | 
| Total Lines | 61 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class Template extends ModuleTemplate  | 
            ||
| 11 | { | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * 获取模板源路径  | 
            ||
| 15 | *  | 
            ||
| 16 | * @return string|null  | 
            ||
| 17 | */  | 
            ||
| 18 | public function getSourcePath(): ?string  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * 包含模板  | 
            ||
| 31 | *  | 
            ||
| 32 | * @param string $name  | 
            ||
| 33 | * @return void  | 
            ||
| 34 | * @throws Exception  | 
            ||
| 35 | */  | 
            ||
| 36 | public function include(string $name)  | 
            ||
| 37 |     { | 
            ||
| 38 | $included = new self($name, $this->application, $this->request, $this->module);  | 
            ||
| 39 | $included->parent = $this;  | 
            ||
| 40 | $included->value = $this->value;  | 
            ||
| 41 | echo $included->getRenderedString();  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | private function seekSourcePath():?array  | 
            ||
| 60 | }  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * @return string  | 
            ||
| 64 | */  | 
            ||
| 65 | public function getPath()  | 
            ||
| 73 |