Config::getArrayConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\UsingConfigFromCustomEnv\LocalConfig;
6
7
use Gacela\Framework\AbstractConfig;
8
9
final class Config extends AbstractConfig
10
{
11
    public function getArrayConfig(): array
12
    {
13
        return [
14
            'from-default' => (int)$this->get('from-default'),
15
            'from-default-env-override' => (int)$this->get('from-default-env-override'),
16
            'from-local-override' => (int)$this->get('from-local-override'),
17
        ];
18
    }
19
}
20