Extension   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 22
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A loadConfig() 0 3 1
A registerServices() 0 2 1
A registerCommands() 0 2 1
A registerRoutes() 0 2 1
1
<?php
2
3
namespace pjpawel\LightApi\Component\Extension;
4
5
use pjpawel\LightApi\Command\CommandsLoader;
6
use pjpawel\LightApi\Container\ContainerLoader;
7
use pjpawel\LightApi\Route\Router;
8
9
class Extension implements ExtensionInterface
10
{
11
12
    protected array $config = [];
13
14
    public function loadConfig(array $config): void
15
    {
16
        $this->config = $config;
17
    }
18
19
    public function registerServices(ContainerLoader $container): void
20
    {
21
22
    }
23
24
    public function registerRoutes(Router $router): void
25
    {
26
27
    }
28
29
    public function registerCommands(CommandsLoader $commandLoader): void
30
    {
31
32
    }
33
}