Completed
Push — master ( 3302df...da5155 )
by Maxim
02:15
created

AbstractCube   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 2 1
A getMigrations() 0 3 1
1
<?php
2
3
namespace WebComplete\core\cube;
4
5
use WebComplete\core\utils\container\ContainerInterface;
6
7
abstract class AbstractCube
8
{
9
10
    /**
11
     * @param $definitions
12
     *
13
     * @return void
14
     */
15
    abstract public function registerDependencies(array &$definitions);
16
17
    /**
18
     * @return array [sort => migration class]
19
     */
20
    public function getMigrations(): array
21
    {
22
        return [];
23
    }
24
25
    /**
26
     */
27
    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

27
    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...
28
    {
29
    }
30
}
31