Passed
Pull Request — master (#38)
by Melech
05:50 queued 01:43
created

Config::setPropertiesFromEnv()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 25
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 19
dl 0
loc 25
rs 9.6333
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Valkyrja\Application;
15
16
use Valkyrja\Container\Contract\Service;
17
use Valkyrja\Container\Support\Provider;
18
19
/**
20
 * Class AppConfig.
21
 *
22
 * @author Melech Mizrachi
23
 */
24
class Config
25
{
26
    /**
27
     * @param class-string[]           $aliases
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string[].
Loading history...
28
     * @param class-string<Service>[]  $services
29
     * @param class-string<Provider>[] $providers
30
     * @param class-string[]           $listeners
31
     * @param class-string[]           $commands
32
     * @param class-string[]           $controllers
33
     */
34
    public function __construct(
35
        public array $aliases = [],
36
        public array $services = [],
37
        public array $providers = [],
38
        public array $listeners = [],
39
        public array $commands = [],
40
        public array $controllers = [],
41
    ) {
42
    }
43
}
44