Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait ManagesHydeKernel |
||
16 | { |
||
17 | public function boot(): void |
||
18 | { |
||
19 | $this->booted = true; |
||
|
|||
20 | |||
21 | $this->files = FileCollection::boot($this); |
||
22 | $this->pages = PageCollection::boot($this); |
||
23 | $this->routes = RouteCollection::boot($this); |
||
24 | } |
||
25 | |||
26 | public static function getInstance(): HydeKernel |
||
27 | { |
||
28 | return static::$instance; |
||
29 | } |
||
30 | |||
31 | public static function setInstance(HydeKernel $instance): void |
||
32 | { |
||
33 | static::$instance = $instance; |
||
34 | } |
||
35 | |||
36 | public function setBasePath(string $basePath): void |
||
37 | { |
||
38 | $this->basePath = rtrim($basePath, '/\\'); |
||
39 | } |
||
40 | |||
41 | public function getBasePath(): string |
||
44 | } |
||
45 | } |
||
46 |