We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class BackpackManager |
||
9 | { |
||
10 | private array $cruds; |
||
11 | |||
12 | public function crud(CrudControllerContract $controller): CrudPanel |
||
13 | { |
||
14 | $controllerClass = get_class($controller); |
||
15 | |||
16 | if (isset($this->cruds[$controllerClass])) { |
||
17 | return $this->cruds[$controllerClass]; |
||
18 | } |
||
19 | |||
20 | $instance = new CrudPanel(); |
||
21 | |||
22 | $this->cruds[$controllerClass] = $instance; |
||
23 | |||
24 | return $this->cruds[$controllerClass]; |
||
25 | } |
||
26 | |||
27 | public function crudFromController(string $controller): CrudPanel |
||
41 | } |
||
42 | |||
43 | public function hasCrudController(string $controller): bool |
||
46 | } |
||
47 | |||
48 | public function getControllerCrud(string $controller): CrudPanel |
||
53 |