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

ValidatorBootstrapper::getBindings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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