AbstractCube   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 2 1
A getMigrations() 0 3 1
A registerDependencies() 0 2 1
1
<?php
2
3
namespace WebComplete\core\cube;
4
5
use WebComplete\core\utils\container\ContainerInterface;
6
7
abstract class AbstractCube
8
{
9
    public $enabled = true;
10
    public $bootstrapAfterCubeClass = null;
11
12
    /**
13
     * @return array [sort => migration class]
14
     */
15
    public function getMigrations(): array
16
    {
17
        return [];
18
    }
19
20
    /**
21
     */
22
    public function bootstrap(ContainerInterface $container)
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public function bootstrap(/** @scrutinizer ignore-unused */ ContainerInterface $container)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
    }
25
26
    /**
27
     * @param $definitions
28
     *
29
     * @return void
30
     */
31
    public function registerDependencies(array &$definitions)
0 ignored issues
show
Unused Code introduced by
The parameter $definitions is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

31
    public function registerDependencies(/** @scrutinizer ignore-unused */ array &$definitions)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
    }
34
}
35