| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Application |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * 应用路径 |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $path; |
||
| 18 | /** |
||
| 19 | * 类加载器 |
||
| 20 | * |
||
| 21 | * @var Loader |
||
| 22 | */ |
||
| 23 | protected $classLoader; |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * Get 类加载器 |
||
| 28 | * |
||
| 29 | * @return Loader |
||
| 30 | */ |
||
| 31 | public function getClassLoader() |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set 类加载器 |
||
| 38 | * |
||
| 39 | * @param Loader $classLoader 类加载器 |
||
| 40 | * |
||
| 41 | * @return self |
||
| 42 | */ |
||
| 43 | public function setClassLoader(Loader $classLoader) |
||
| 44 | { |
||
| 45 | $this->classLoader = $classLoader; |
||
| 46 | |||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * 从文件夹加载应用 |
||
| 52 | * |
||
| 53 | * @param string $path |
||
| 54 | * @return self |
||
| 55 | */ |
||
| 56 | public function loadFrom(string $path) { |
||
| 58 | } |
||
| 59 | } |
||
| 60 |