| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class AbstractDependencyProvider implements ContainerInterface |
||
| 17 | { |
||
| 18 | protected static array $instances; |
||
| 19 | |||
| 20 | protected Locator $locator; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 25 | } |
||
| 26 | |||
| 27 | //ToDo: Pass Container (DI) with module dynamic resolver of KernelConfig Patterns |
||
| 28 | public function provideDependencies(Locator $locator): void |
||
|
|
|||
| 29 | { |
||
| 30 | } |
||
| 31 | |||
| 32 | public function get(string $id) |
||
| 33 | { |
||
| 34 | return static::$instances[$id]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function has(string $id): bool |
||
| 38 | { |
||
| 39 | // TODO: Implement has() method. |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function set(string $id, $concrete): void |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.