| Total Complexity | 10 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 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) |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return array|null |
||
| 46 | */ |
||
| 47 | private function seekSourcePath():?array |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getPath() |
||
| 76 |