Passed
Push — main ( a04a11...ed3749 )
by Dimitri
05:24
created

AbstractProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A definitions() 0 5 1
A register() 0 2 1
1
<?php
2
3
/**
4
 * This file is part of Blitz PHP framework.
5
 *
6
 * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Container;
13
14
abstract class AbstractProvider
15
{
16
    public function __construct(protected Container $container)
17
    {
18
    }
19
20
    public static function definitions(): array
21
    {
22
        // a implementer par les classes filles
23
24
        return [];
25
    }
26
27
    public function register(): void
28
    {
29
        // à implementer par les classes filles
30
    }
31
}
32