Passed
Push — master ( 380517...f13cd3 )
by Peter
09:19
created

ValidatorBootstrapper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBindings() 0 5 1
A registerBindings() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Files\Bootstrappers\Validation;
6
7
use AbterPhp\Files\Validation\Factory\File;
8
use AbterPhp\Files\Validation\Factory\FileCategory;
9
use Opulence\Ioc\Bootstrappers\Bootstrapper;
10
use Opulence\Ioc\Bootstrappers\ILazyBootstrapper;
11
use Opulence\Ioc\IContainer;
12
13
/**
14
 * Defines the validator bootstrapper
15
 */
16
class ValidatorBootstrapper extends Bootstrapper implements ILazyBootstrapper
17
{
18
    /**
19
     * @inheritdoc
20
     */
21
    public function getBindings(): array
22
    {
23
        return [
24
            FileCategory::class,
25
            File::class,
26
        ];
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32
    public function registerBindings(IContainer $container)
33
    {
34
        parent::registerBindings($container);
35
    }
36
}
37