We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Models |
||
| 11 | { |
||
| 12 | public array $models = []; |
||
| 13 | |||
| 14 | public function get(string $name) |
||
| 15 | { |
||
| 16 | return $this->$name ?? null; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getAll(): array |
||
| 20 | { |
||
| 21 | return $this->models; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function add(string $name, $model) |
||
| 25 | { |
||
| 26 | $this->models[$name] = $model; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function __get($name) |
||
| 32 | } |
||
| 33 | } |
||
| 34 |